fix(Core/Misc): Consider /dance as an emote state. (#14275)
This commit is contained in:
parent
20c9e80d4a
commit
962cefdcd8
3 changed files with 15 additions and 0 deletions
|
|
@ -14464,6 +14464,9 @@ void Unit::setDeathState(DeathState s, bool despawn)
|
|||
SetHealth(0);
|
||||
SetPower(getPowerType(), 0);
|
||||
|
||||
// Stop emote on death
|
||||
SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
|
||||
|
||||
// players in instance don't have ZoneScript, but they have InstanceScript
|
||||
if (ZoneScript* zoneScript = GetZoneScript() ? GetZoneScript() : (ZoneScript*)GetInstanceScript())
|
||||
zoneScript->OnUnitDeath(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue