Core/AI: Clean up charm AI handling.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e4e8c1c59c8b37216814526b4d2551f23934f465)
This commit is contained in:
@@ -86,7 +86,7 @@ namespace Game.Chat
|
||||
return false;
|
||||
|
||||
Creature target = handler.GetSelectedCreature();
|
||||
if (!target || !target.IsAIEnabled || target.GetAI() == null)
|
||||
if (!target || !target.IsAIEnabled())
|
||||
return false;
|
||||
|
||||
string fill_str = args.NextString();
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Game.Chat
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!creatureTarget.IsAIEnabled)
|
||||
if (!creatureTarget.IsAIEnabled())
|
||||
{
|
||||
handler.SendSysMessage(CypherStrings.CreatureNotAiEnabled);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user