Core/AI: Clean up charm AI handling.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e4e8c1c59c8b37216814526b4d2551f23934f465)
This commit is contained in:
@@ -1749,7 +1749,7 @@ namespace Game
|
||||
for (var i = 0; i < objs.Count; ++i)
|
||||
{
|
||||
Creature creature = objs[i];
|
||||
if (creature.IsInWorld && creature.IsAIEnabled)
|
||||
if (creature.IsInWorld && creature.IsAIEnabled())
|
||||
creature.GetAI().OnGameEvent(_activate, _eventId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user