From f791d23dc79d2cdf9653ca8321f2daf48d9061d3 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Sun, 2 Aug 2015 03:13:35 +0200 Subject: [PATCH] Core/Misc: Remove duplicate code --- src/server/scripts/Spells/spell_hunter.cpp | 40 ---------------------- 1 file changed, 40 deletions(-) diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp index 882d0fdaea0..ae9501b1737 100644 --- a/src/server/scripts/Spells/spell_hunter.cpp +++ b/src/server/scripts/Spells/spell_hunter.cpp @@ -697,45 +697,6 @@ class spell_hun_rapid_recuperation : public SpellScriptLoader } }; -// 56654, 58882 - Rapid Recuperation -class spell_hun_rapid_recuperation : public SpellScriptLoader -{ - public: - spell_hun_rapid_recuperation() : SpellScriptLoader("spell_hun_rapid_recuperation") { } - - class spell_hun_rapid_recuperation_AuraScript : public AuraScript - { - PrepareAuraScript(spell_hun_rapid_recuperation_AuraScript); - - bool Validate(SpellInfo const* spellInfo) override - { - if (!sSpellMgr->GetSpellInfo(spellInfo->Effects[EFFECT_0].TriggerSpell)) - return false; - return true; - } - - void HandlePeriodic(AuraEffect const* aurEff) - { - PreventDefaultAction(); - - Unit* target = GetTarget(); - uint32 mana = CalculatePct(target->GetMaxPower(POWER_MANA), aurEff->GetAmount()); - - target->CastCustomSpell(GetSpellInfo()->Effects[aurEff->GetEffIndex()].TriggerSpell, SPELLVALUE_BASE_POINT0, int32(mana), target, true, nullptr, aurEff); - } - - void Register() override - { - OnEffectPeriodic += AuraEffectPeriodicFn(spell_hun_rapid_recuperation_AuraScript::HandlePeriodic, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL); - } - }; - - AuraScript* GetAuraScript() const override - { - return new spell_hun_rapid_recuperation_AuraScript(); - } -}; - // 23989 - Readiness class spell_hun_readiness : public SpellScriptLoader { @@ -1134,7 +1095,6 @@ void AddSC_hunter_spell_scripts() new spell_hun_pet_carrion_feeder(); new spell_hun_pet_heart_of_the_phoenix(); new spell_hun_rapid_recuperation(); - new spell_hun_rapid_recuperation(); new spell_hun_readiness(); new spell_hun_ready_set_aim(); new spell_hun_scatter_shot();