mirror of
https://github.com/mangosfour/server.git
synced 2026-01-01 16:37:12 +00:00
Correction made to function name
Correction made to function name This bring Three inline with the other cores
This commit is contained in:
parent
ef99e52743
commit
2cffff301e
8 changed files with 10 additions and 10 deletions
|
|
@ -105,7 +105,7 @@ namespace LuaUnit
|
|||
Creature* creature = Eluna::CHECKOBJ<Creature>(L, 2);
|
||||
|
||||
#ifndef TRINITY
|
||||
Eluna::Push(L, unit->IsInAccessablePlaceFor(creature));
|
||||
Eluna::Push(L, unit->isInAccessablePlaceFor(creature));
|
||||
#else
|
||||
Eluna::Push(L, unit->isInAccessiblePlaceFor(creature));
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ bool npc_escortAI::AssistPlayerInCombat(Unit* pWho)
|
|||
|
||||
void npc_escortAI::MoveInLineOfSight(Unit* pWho)
|
||||
{
|
||||
if (pWho->IsTargetableForAttack() && pWho->IsInAccessablePlaceFor(m_creature))
|
||||
if (pWho->IsTargetableForAttack() && pWho->isInAccessablePlaceFor(m_creature))
|
||||
{
|
||||
// AssistPlayerInCombat can start attack, so return if true
|
||||
if (HasEscortState(STATE_ESCORT_ESCORTING) && AssistPlayerInCombat(pWho))
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ bool FollowerAI::AssistPlayerInCombat(Unit* pWho)
|
|||
|
||||
void FollowerAI::MoveInLineOfSight(Unit* pWho)
|
||||
{
|
||||
if (pWho->IsTargetableForAttack() && pWho->IsInAccessablePlaceFor(m_creature))
|
||||
if (pWho->IsTargetableForAttack() && pWho->isInAccessablePlaceFor(m_creature))
|
||||
{
|
||||
// AssistPlayerInCombat can start attack, so return if true
|
||||
if (HasFollowState(STATE_FOLLOW_INPROGRESS) && AssistPlayerInCombat(pWho))
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ void ScriptedPetAI::MoveInLineOfSight(Unit* pWho)
|
|||
}
|
||||
|
||||
if (m_creature->CanInitiateAttack() && pWho->IsTargetableForAttack() &&
|
||||
m_creature->IsHostileTo(pWho) && pWho->IsInAccessablePlaceFor(m_creature))
|
||||
m_creature->IsHostileTo(pWho) && pWho->isInAccessablePlaceFor(m_creature))
|
||||
{
|
||||
if (!m_creature->CanFly() && m_creature->GetDistanceZ(pWho) > CREATURE_Z_ATTACK_RANGE)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ bool ScriptedAI::IsVisible(Unit* pWho) const
|
|||
void ScriptedAI::MoveInLineOfSight(Unit* pWho)
|
||||
{
|
||||
if (m_creature->CanInitiateAttack() && pWho->IsTargetableForAttack() &&
|
||||
m_creature->IsHostileTo(pWho) && pWho->IsInAccessablePlaceFor(m_creature))
|
||||
m_creature->IsHostileTo(pWho) && pWho->isInAccessablePlaceFor(m_creature))
|
||||
{
|
||||
if (!m_creature->CanFly() && m_creature->GetDistanceZ(pWho) > CREATURE_Z_ATTACK_RANGE)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -58,14 +58,14 @@ struct npc_ragged_john : public CreatureScript
|
|||
{
|
||||
if (who->HasAura(16468, EFFECT_INDEX_0))
|
||||
{
|
||||
if (who->GetTypeId() == TYPEID_PLAYER && m_creature->IsWithinDistInMap(who, 15) && who->IsInAccessablePlaceFor(m_creature))
|
||||
if (who->GetTypeId() == TYPEID_PLAYER && m_creature->IsWithinDistInMap(who, 15) && who->isInAccessablePlaceFor(m_creature))
|
||||
{
|
||||
DoCastSpellIfCan(who, 16472);
|
||||
((Player*)who)->AreaExploredOrEventHappens(4866);
|
||||
}
|
||||
}
|
||||
|
||||
if (!m_creature->getVictim() && who->IsTargetableForAttack() && (m_creature->IsHostileTo(who)) && who->IsInAccessablePlaceFor(m_creature))
|
||||
if (!m_creature->getVictim() && who->IsTargetableForAttack() && (m_creature->IsHostileTo(who)) && who->isInAccessablePlaceFor(m_creature))
|
||||
{
|
||||
if (!m_creature->CanFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1244,7 +1244,7 @@ struct horde_defender : public CreatureScript
|
|||
void MoveInLineOfSight(Unit* u) override
|
||||
{
|
||||
if (m_creature->CanInitiateAttack() && u->IsTargetableForAttack() &&
|
||||
m_creature->IsHostileTo(u) && u->IsInAccessablePlaceFor(m_creature))
|
||||
m_creature->IsHostileTo(u) && u->isInAccessablePlaceFor(m_creature))
|
||||
{
|
||||
float attackRadius = 38.0f;
|
||||
if (m_creature->IsWithinDistInMap(u, attackRadius) && m_creature->IsWithinLOSInMap(u))
|
||||
|
|
@ -1327,7 +1327,7 @@ struct kolkar_invader : public CreatureScript
|
|||
void MoveInLineOfSight(Unit* u) override
|
||||
{
|
||||
if (m_creature->CanInitiateAttack() && u->IsTargetableForAttack() &&
|
||||
m_creature->IsHostileTo(u) && u->IsInAccessablePlaceFor(m_creature))
|
||||
m_creature->IsHostileTo(u) && u->isInAccessablePlaceFor(m_creature))
|
||||
{
|
||||
float attackRadius = 38.0f;
|
||||
if (m_creature->IsWithinDistInMap(u, attackRadius) && m_creature->IsWithinLOSInMap(u))
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ struct boss_talon_king_ikiss : public CreatureScript
|
|||
|
||||
void MoveInLineOfSight(Unit* pWho) override
|
||||
{
|
||||
if (!m_creature->getVictim() && pWho->IsTargetableForAttack() && (m_creature->IsHostileTo(pWho)) && pWho->IsInAccessablePlaceFor(m_creature))
|
||||
if (!m_creature->getVictim() && pWho->IsTargetableForAttack() && (m_creature->IsHostileTo(pWho)) && pWho->isInAccessablePlaceFor(m_creature))
|
||||
{
|
||||
if (!m_bIntro && m_creature->IsWithinDistInMap(pWho, 100.0f))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue