mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Units: Clear UNIT_NPC_EMOTESTATE on death (blizzlike)
Closes #15263 Closes #18027
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user