mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 11:43:18 -04:00
Core/Entities: killed Creature::SetInCombatWithZone and replaced with AI version
Closes #12108 (again)
(cherry picked from commit 7c9722a4ae)
This commit is contained in:
@@ -1005,7 +1005,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 %s, target: %s", me->GetGUID().ToString().c_str(), target->GetGUID().ToString().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user