Core/AI: Clean up charm AI handling, we now have two unique_ptr instead of a crapton of booleans

This commit is contained in:
Treeston
2018-08-23 14:33:28 +02:00
parent 0e4a49b0a4
commit 042f5515e4
66 changed files with 305 additions and 400 deletions

View File

@@ -1037,7 +1037,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
}
case SMART_ACTION_SET_IN_COMBAT_WITH_ZONE:
{
if (me && me->IsAIEnabled)
if (me && me->IsAIEnabled())
{
me->AI()->DoZoneInCombat();
TC_LOG_DEBUG("scripts.ai", "SmartScript::ProcessAction: SMART_ACTION_SET_IN_COMBAT_WITH_ZONE: Creature %u", me->GetGUID().GetCounter());