refactor(Scripts/Command): Simplify command go set state (#9527)
This commit is contained in:
@@ -580,10 +580,7 @@ public:
|
|||||||
object->SetByteValue(GAMEOBJECT_BYTES_1, objectType, *objectState);
|
object->SetByteValue(GAMEOBJECT_BYTES_1, objectType, *objectState);
|
||||||
else if (objectType == 4)
|
else if (objectType == 4)
|
||||||
{
|
{
|
||||||
WorldPacket data(SMSG_GAMEOBJECT_CUSTOM_ANIM, 8+4);
|
object->SendCustomAnim(*objectState);
|
||||||
data << object->GetGUID();
|
|
||||||
data << static_cast<uint32>(*objectState);
|
|
||||||
object->SendMessageToSet(&data, true);
|
|
||||||
}
|
}
|
||||||
handler->PSendSysMessage("Set gobject type %d state %u", objectType, *objectState);
|
handler->PSendSysMessage("Set gobject type %d state %u", objectType, *objectState);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user