Core/Units: Clear UNIT_NPC_EMOTESTATE on death (blizzlike)

Closes #15263
Closes #18027
This commit is contained in:
Shauren
2016-10-04 17:51:37 +02:00
committed by Aokromes
parent 4ce27937b0
commit f5a980be9b

View File

@@ -11065,6 +11065,7 @@ void Unit::setDeathState(DeathState s)
// do not why since in IncreaseMaxHealth currenthealth is checked
SetHealth(0);
SetPower(getPowerType(), 0);
SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
// players in instance don't have ZoneScript, but they have InstanceScript
if (ZoneScript* zoneScript = GetZoneScript() ? GetZoneScript() : GetInstanceScript())