mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
*AI structure update.
--HG-- branch : trunk
This commit is contained in:
@@ -107,12 +107,6 @@ void PossessedAI::UpdateAI(const uint32 diff)
|
||||
}
|
||||
}
|
||||
|
||||
bool PossessedAI::_isVisible(Unit *u) const
|
||||
{
|
||||
return i_pet.GetDistance(u) < sWorld.getConfig(CONFIG_SIGHT_MONSTER)
|
||||
&& u->isVisibleForOrDetect(&i_pet,true);
|
||||
}
|
||||
|
||||
void PossessedAI::JustDied(Unit *u)
|
||||
{
|
||||
// We died while possessed, disable our loot
|
||||
|
||||
Reference in New Issue
Block a user