mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/Unit: Make HandleEmoteCommand typesafe (#25249)
* Scripts/ScarletMonastery: Fix wrong emote during Headless Horseman encounter * Scripts/HoR: Fix wrong emote during escape event * Core/Unit: Make improve type safety of HandleEmoteCommand Change argument type to the expected enum type Emote * Scripts/CoS: Use SetUInt32Value to set UNIT_NPC_EMOTESTATE UNIT_NPC_EMOTESTATE is no flag field
This commit is contained in:
committed by
GitHub
parent
34d403e83f
commit
6c7837f947
@@ -450,7 +450,7 @@ void Map::ScriptsProcess()
|
||||
if (step.script->Emote.Flags & SF_EMOTE_USE_STATE)
|
||||
cSource->SetUInt32Value(UNIT_NPC_EMOTESTATE, step.script->Emote.EmoteID);
|
||||
else
|
||||
cSource->HandleEmoteCommand(step.script->Emote.EmoteID);
|
||||
cSource->HandleEmoteCommand(static_cast<Emote>(step.script->Emote.EmoteID));
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user