Core/Combat: Properly unset engagement flag on death.

# Conflicts:
#	src/server/game/AI/CoreAI/GuardAI.cpp
#	src/server/game/Entities/Creature/Creature.cpp
This commit is contained in:
Treeston authored and Ovahlord committed 2020-07-22 19:16:35 +02:00
1 parent 58eab458e2
commit 1d02149384
2 files changed
+6 -2

No files matched your search

-2
View File
@@ -11669,8 +11669,6 @@ void Unit::Kill(Unit* victim, bool durabilityLoss)
if (!creature->IsPet())
{
creature->GetThreatManager().ClearAllThreat();
// must be after setDeathState which resets dynamic flags
if (!creature->loot.isLooted())
creature->SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);