refactor(Scripts/Command): Simplify command go set state (#9527)

This commit is contained in:
Skjalf
2021-12-11 13:58:59 -03:00
committed by GitHub
parent 5ec50ac119
commit 1e3ba98fba

View File

@@ -580,10 +580,7 @@ public:
object->SetByteValue(GAMEOBJECT_BYTES_1, objectType, *objectState);
else if (objectType == 4)
{
WorldPacket data(SMSG_GAMEOBJECT_CUSTOM_ANIM, 8+4);
data << object->GetGUID();
data << static_cast<uint32>(*objectState);
object->SendMessageToSet(&data, true);
object->SendCustomAnim(*objectState);
}
handler->PSendSysMessage("Set gobject type %d state %u", objectType, *objectState);
return true;