Core/Combat: Properly unset engagement flag on death.

Port From (https://github.com/TrinityCore/TrinityCore/commit/6b1ca0ca128425677043d36a147a019f6d2ac6e6)
This commit is contained in:
hondacrx
2022-01-02 12:32:11 -05:00
parent c7224deafe
commit f954046c4c
3 changed files with 10 additions and 4 deletions
+6
View File
@@ -244,6 +244,12 @@ namespace Game.AI
if (!IsEngaged())
return false;
if (!me.IsAlive())
{
EngagementOver();
return false;
}
if (!me.HasReactState(ReactStates.Passive))
{
Unit victim = me.SelectVictim();