Core/Entities: killed Creature::SetInCombatWithZone and replaced with AI version

Closes #12108 (again)
This commit is contained in:
ariel-
2018-01-22 15:00:55 -03:00
parent e315e41d36
commit 7c9722a4ae
33 changed files with 60 additions and 95 deletions

View File

@@ -994,7 +994,9 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
{
if (IsCreature(target))
{
target->ToCreature()->SetInCombatWithZone();
Creature* creature = target->ToCreature();
if (creature->IsAIEnabled)
creature->AI()->DoZoneInCombat();
TC_LOG_DEBUG("scripts.ai", "SmartScript::ProcessAction: SMART_ACTION_SET_IN_COMBAT_WITH_ZONE: Creature %u, target: %u", me->GetGUID().GetCounter(), target->GetGUID().GetCounter());
}
}