Core/CreatureAI: CheckBoundary -> IsInBoundary, better reflects what it does. Also moved to public so spellscript can use it.

(cherry picked from commit df639d85e4e82add71432ea0a4cba91f238a30ba)
This commit is contained in:
Treeston
2021-08-23 23:28:48 +02:00
committed by Shauren
parent 69c6c59659
commit 994121e671
8 changed files with 15 additions and 16 deletions
@@ -507,7 +507,7 @@ void BossAI::TeleportCheaters()
for (auto const& pair : me->GetCombatManager().GetPvECombatRefs())
{
Unit* target = pair.second->GetOther(me);
if (target->IsControlledByPlayer() && !CheckBoundary(target))
if (target->IsControlledByPlayer() && !IsInBoundary(target))
target->NearTeleportTo(x, y, z, 0);
}
}
@@ -546,7 +546,7 @@ void BossAI::UpdateAI(uint32 diff)
bool BossAI::CanAIAttack(Unit const* target) const
{
return CheckBoundary(target);
return IsInBoundary(target);
}
void BossAI::_DespawnAtEvade(Seconds delayToRespawn /*= 30s*/, Creature* who /*= nullptr*/)