diff options
author | Jeremy <Golrag@users.noreply.github.com> | 2025-06-06 21:11:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-06 21:11:52 +0200 |
commit | 5d4bde1d15924e2838c181ab102afd59586e501f (patch) | |
tree | ee2113848c761f90d89992e502978f2d98425cbc | |
parent | f25ca4165e720ece61a44b1c734ce53cfe31367b (diff) |
Script/Spells: Remove outdated Sudden Death spell script (#31028)
-rw-r--r-- | sql/updates/world/master/2025_06_06_03_world.sql | 1 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_warrior.cpp | 22 |
2 files changed, 1 insertions, 22 deletions
diff --git a/sql/updates/world/master/2025_06_06_03_world.sql b/sql/updates/world/master/2025_06_06_03_world.sql new file mode 100644 index 00000000000..6d5a6fd98a3 --- /dev/null +++ b/sql/updates/world/master/2025_06_06_03_world.sql @@ -0,0 +1 @@ +DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_warr_sudden_death'; diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp index 1564a5efe30..bfe379b1ed6 100644 --- a/src/server/scripts/Spells/spell_warrior.cpp +++ b/src/server/scripts/Spells/spell_warrior.cpp @@ -744,27 +744,6 @@ class spell_warr_strategist : public AuraScript } }; -// 52437 - Sudden Death -class spell_warr_sudden_death : public AuraScript -{ - bool Validate(SpellInfo const* /*spellInfo*/) override - { - return ValidateSpellInfo({ SPELL_WARRIOR_COLOSSUS_SMASH }); - } - - void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) - { - // Remove cooldown on Colossus Smash - if (Player* player = GetTarget()->ToPlayer()) - player->GetSpellHistory()->ResetCooldown(SPELL_WARRIOR_COLOSSUS_SMASH, true); - } - - void Register() override - { - AfterEffectApply += AuraEffectRemoveFn(spell_warr_sudden_death::HandleApply, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL); // correct? - } -}; - // 12328, 18765, 35429 - Sweeping Strikes class spell_warr_sweeping_strikes : public AuraScript { @@ -928,7 +907,6 @@ void AddSC_warrior_spell_scripts() RegisterSpellScript(spell_warr_storm_bolt); RegisterSpellScript(spell_warr_storm_bolts); RegisterSpellScript(spell_warr_strategist); - RegisterSpellScript(spell_warr_sudden_death); RegisterSpellScript(spell_warr_sweeping_strikes); RegisterSpellScript(spell_warr_trauma); RegisterSpellScript(spell_warr_t3_prot_8p_bonus); |