Core/Units: Reduce differences between branches part 1 - unit updatefield accessors

This commit is contained in:
Shauren
2022-03-29 11:30:49 +02:00
parent c02b829788
commit d611925dc7
232 changed files with 1587 additions and 1436 deletions

View File

@@ -448,7 +448,7 @@ void Map::ScriptsProcess()
if (Creature* cSource = _GetScriptCreatureSourceOrTarget(source, target, step.script))
{
if (step.script->Emote.Flags & SF_EMOTE_USE_STATE)
cSource->SetUInt32Value(UNIT_NPC_EMOTESTATE, step.script->Emote.EmoteID);
cSource->SetEmoteState(Emote(step.script->Emote.EmoteID));
else
cSource->HandleEmoteCommand(static_cast<Emote>(step.script->Emote.EmoteID));
}