Upgraded SCRIPT_COMMAND_EMOTE to do state emotes, too, based on datalong2 value. By Malcrom.
--HG-- branch : trunk
This commit is contained in:
1 parent
48d7ae707d
commit
2c605ee482
1 file changed
+4
-1
+4
-1
@@ -3064,7 +3064,10 @@ void Map::ScriptsProcess()
|
||||
break;
|
||||
}
|
||||
|
||||
source->ToCreature()->HandleEmoteCommand(step.script->datalong);
|
||||
if (step.script->datalong2)
|
||||
((Creature *)source)->SetUInt32Value(UNIT_NPC_EMOTESTATE, step.script->datalong);
|
||||
else
|
||||
((Creature *)source)->HandleEmoteCommand(step.script->datalong);
|
||||
break;
|
||||
case SCRIPT_COMMAND_FIELD_SET:
|
||||
if(!source)
|
||||
|
||||
Reference in new issue
Block a user