Script/Spells: Remove outdated Sudden Death spell script (#31028)

This commit is contained in:
Jeremy
2025-06-06 21:11:52 +02:00
committed by GitHub
parent f25ca4165e
commit 5d4bde1d15
2 changed files with 1 additions and 22 deletions

View File

@@ -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);