Core/Entities: killed Creature::SetInCombatWithZone and replaced with AI version
Port From (https://github.com/TrinityCore/TrinityCore/commit/c77925da4a320df5be5eaeb1fc799df50e22c041)
This commit is contained in:
@@ -928,7 +928,9 @@ namespace Game.AI
|
||||
{
|
||||
if (IsCreature(target))
|
||||
{
|
||||
_me.SetInCombatWithZone();
|
||||
Creature creature = target.ToCreature();
|
||||
if (creature.IsAIEnabled)
|
||||
creature.GetAI().DoZoneInCombat();
|
||||
Log.outDebug(LogFilter.ScriptsAi, $"SmartScript.ProcessAction: SMART_ACTION_SET_IN_COMBAT_WITH_ZONE: Creature: {_me.GetGUID()}, Target: {target.GetGUID()}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user