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:
1 parent
58eab458e2
commit
1d02149384
2 files changed
+6
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user