void HandleEmote(EmoteClient packet) { if (!GetPlayer().IsAlive() || GetPlayer().HasUnitState(UnitState.Died)) return; Global.ScriptMgr.OnPlayerClearEmote(GetPlayer()); GetPlayer().SetEmoteState(Emote.OneshotNone); }
void HandleEmote(EmoteClient packet) { if (!GetPlayer().IsAlive() || GetPlayer().HasUnitState(UnitState.Died)) { return; } Global.ScriptMgr.OnPlayerClearEmote(GetPlayer()); if (GetPlayer().GetUInt32Value(UnitFields.NpcEmotestate) != 0) { GetPlayer().SetUInt32Value(UnitFields.NpcEmotestate, 0); } }