From c4d40085964109893c76d301b6f7d99f03838fa0 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 10 May 2023 17:20:51 +0200 Subject: [PATCH] Scripts/Underrot: Removed unneccessary code, handled by difficulty version of SpellMisc already --- .../Zandalar/Underrot/boss_cragmaw_the_infested.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/server/scripts/Zandalar/Underrot/boss_cragmaw_the_infested.cpp b/src/server/scripts/Zandalar/Underrot/boss_cragmaw_the_infested.cpp index e92f6f8e73..e506d3ec26 100644 --- a/src/server/scripts/Zandalar/Underrot/boss_cragmaw_the_infested.cpp +++ b/src/server/scripts/Zandalar/Underrot/boss_cragmaw_the_infested.cpp @@ -314,16 +314,6 @@ class spell_cragmaw_larva_metamorphosis : public AuraScript }); } - void OnApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) - { - // Spell duration is 8s on heroic+ difficulties - if (GetTarget()->GetMap()->GetDifficultyID() != DIFFICULTY_NORMAL) - { - aurEff->GetBase()->SetDuration(8000); - aurEff->GetBase()->SetMaxDuration(8000); - } - } - void HandlePeriodic(AuraEffect const* aurEff) { if (aurEff->GetTickNumber() == aurEff->GetTotalTicks() - 2) @@ -342,7 +332,6 @@ class spell_cragmaw_larva_metamorphosis : public AuraScript void Register() override { - AfterEffectApply += AuraEffectApplyFn(spell_cragmaw_larva_metamorphosis::OnApply, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY, AURA_EFFECT_HANDLE_REAL); OnEffectPeriodic += AuraEffectPeriodicFn(spell_cragmaw_larva_metamorphosis::HandlePeriodic, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY); AfterEffectRemove += AuraEffectRemoveFn(spell_cragmaw_larva_metamorphosis::OnRemove, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY, AURA_EFFECT_HANDLE_REAL); }