mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-14 04:02:53 -04:00
Core/CreatureAI: CheckBoundary -> IsInBoundary, better reflects what it does. Also moved to public so spellscript can use it.
This commit is contained in:
@@ -523,7 +523,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);
|
||||
}
|
||||
}
|
||||
@@ -562,7 +562,7 @@ void BossAI::UpdateAI(uint32 diff)
|
||||
|
||||
bool BossAI::CanAIAttack(Unit const* target) const
|
||||
{
|
||||
return CheckBoundary(target);
|
||||
return IsInBoundary(target);
|
||||
}
|
||||
|
||||
void BossAI::_DespawnAtEvade(Seconds delayToRespawn, Creature* who)
|
||||
|
||||
Reference in New Issue
Block a user