mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/Units: Reduce differences between branches part 1 - unit updatefield accessors
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user