From 88b33c3645c421eecb4be6c3bc57ae054d59c10a Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Thu, 1 Nov 2018 04:40:10 +0100 Subject: [PATCH] Core/Spells: reverted Energetic Recovery spellscript part since the talent aura handles this already. --- src/server/scripts/Spells/spell_rogue.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp index 01586cac869..5a76f7ff15e 100644 --- a/src/server/scripts/Spells/spell_rogue.cpp +++ b/src/server/scripts/Spells/spell_rogue.cpp @@ -645,11 +645,6 @@ class spell_rog_recuperate : public AuraScript { PrepareAuraScript(spell_rog_recuperate); - bool Validate(SpellInfo const* /*spellInfo*/) override - { - return ValidateSpellInfo({ SPELL_ROGUE_ENERGETIC_RECOVERY }); - } - bool Load() override { return GetCaster()->GetTypeId() == TYPEID_PLAYER; @@ -676,19 +671,10 @@ class spell_rog_recuperate : public AuraScript } } - void CalculateEnergeticRecovery(AuraEffect const* /*aurEff*/, int32& amount, bool& canBeRecalculated) - { - canBeRecalculated = false; - if (Unit* caster = GetCaster()) - if (AuraEffect* aura = caster->GetAuraEffectOfRankedSpell(SPELL_ROGUE_ENERGETIC_RECOVERY, EFFECT_0)) - amount = aura->GetAmount(); - } - void Register() override { OnEffectPeriodic += AuraEffectPeriodicFn(spell_rog_recuperate::OnPeriodic, EFFECT_0, SPELL_AURA_PERIODIC_HEAL); DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_rog_recuperate::CalculateBonus, EFFECT_0, SPELL_AURA_PERIODIC_HEAL); - DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_rog_recuperate::CalculateEnergeticRecovery, EFFECT_1, SPELL_AURA_PERIODIC_ENERGIZE); } };