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

Port From (https://github.com/TrinityCore/TrinityCore/commit/c77925da4a320df5be5eaeb1fc799df50e22c041)
This commit is contained in:
hondacrx
2021-06-23 14:15:43 -04:00
parent 0c527d206c
commit 84d05548f2
2 changed files with 3 additions and 31 deletions
+3 -1
View File
@@ -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()}");
}
}