From 747b1d80cd1e2d0d3a6de72b35d8bd56d317bd44 Mon Sep 17 00:00:00 2001 From: ratkosrb <35845488+ratkosrb@users.noreply.github.com> Date: Sat, 28 Oct 2023 17:24:07 +0300 Subject: [PATCH] Move case up so ids are in order. --- src/game/Spells/SpellEffects.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/game/Spells/SpellEffects.cpp b/src/game/Spells/SpellEffects.cpp index 406962c2bd9..827a8bbf928 100644 --- a/src/game/Spells/SpellEffects.cpp +++ b/src/game/Spells/SpellEffects.cpp @@ -5228,12 +5228,16 @@ void Spell::EffectScriptEffect(SpellEffectIndex effIdx) } return; } - case 29710: + case 28732: // Naxxramas Worshipper - Widow's Embrace + { + if (m_casterUnit && m_casterUnit->IsAlive()) + m_casterUnit->Kill(m_casterUnit, nullptr); + return; + } + case 29710: // Test Ribbon Pole Channel Trigger { if (Player* pPlayerTarget = ToPlayer(unitTarget)) - { pPlayerTarget->CastSpell(pPlayerTarget, PickRandomValue(29705, 29726, 29727), false); - } return; } case 30882: // EPL PvP A Game of Towers: Tower Capture Test (DND) @@ -5256,13 +5260,6 @@ void Spell::EffectScriptEffect(SpellEffectIndex effIdx) { if (Player* pTarget = ToPlayer(unitTarget)) pTarget->CastSpell(pTarget, 32061, true); - - return; - } - case 28732: // Naxxramas Worshipper - Widow's Embrace - { - if (m_casterUnit) - m_casterUnit->Kill(m_casterUnit, nullptr); return; } }