Core/GameObjects: Add GameObjectPlaySpellVisual (#26044)
This commit is contained in:
@@ -2758,6 +2758,17 @@ void GameObject::SetAnimKitId(uint16 animKitId, bool oneshot)
|
||||
SendMessageToSet(activateAnimKit.Write(), true);
|
||||
}
|
||||
|
||||
void GameObject::SetSpellVisualId(int32 spellVisualId, ObjectGuid activatorGuid)
|
||||
{
|
||||
SetUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::SpellVisualID), spellVisualId);
|
||||
|
||||
WorldPackets::GameObject::GameObjectPlaySpellVisual packet;
|
||||
packet.ObjectGUID = GetGUID();
|
||||
packet.ActivatorGUID = activatorGuid;
|
||||
packet.SpellVisualID = spellVisualId;
|
||||
SendMessageToSet(packet.Write(), true);
|
||||
}
|
||||
|
||||
class GameObjectModelOwnerImpl : public GameObjectModelOwnerBase
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user