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
-2
View File
@@ -858,8 +858,6 @@ namespace Game.Entities
if (!creature.IsPet())
{
creature.GetThreatManager().ClearAllThreat();
// must be after setDeathState which resets dynamic flags
if (!creature.loot.IsLooted())
creature.AddDynamicFlag(UnitDynFlags.Lootable);