From b2da79011680cddff09957fbbbc4970165604223 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 28 Jan 2024 23:58:24 +0100 Subject: Core/Spells: handle SpellXSpellVisualID update field --- src/server/game/Spells/Spell.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server/game/Spells/Spell.cpp') diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index d09491ca09b..ed187e2c597 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -5189,6 +5189,7 @@ void Spell::SendChannelUpdate(uint32 time) { unitCaster->ClearChannelObjects(); unitCaster->SetChannelSpellId(0); + unitCaster->SetChannelSpellXSpellVisualId(0); } WorldPackets::Spells::SpellChannelUpdate spellChannelUpdate; @@ -5250,6 +5251,7 @@ void Spell::SendChannelStart(uint32 duration) creatureCaster->SetSpellFocus(this, ObjectAccessor::GetWorldObject(*creatureCaster, unitCaster->m_unitData->ChannelObjects[0])); unitCaster->SetChannelSpellId(m_spellInfo->Id); + unitCaster->SetChannelSpellXSpellVisualId(m_SpellVisual.SpellXSpellVisualID); WorldPackets::Spells::SpellChannelStart spellChannelStart; spellChannelStart.CasterGUID = unitCaster->GetGUID(); -- cgit v1.2.3