From 0e13b35634fec38ba28e4db49b1c5b0c53e48d29 Mon Sep 17 00:00:00 2001 From: maximius Date: Mon, 14 Sep 2009 12:47:26 -0700 Subject: *[Fix][Holy Priest] Empowered Renew by adrycasillo --HG-- branch : trunk --- src/game/SpellAuras.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index d30d0adee11..8d8e137a424 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1023,6 +1023,20 @@ void Aura::HandleAuraSpecificMods(bool apply) caster->CastCustomSpell(m_target, 63675, &basepoints0, NULL, NULL, true, NULL, GetPartAura(0)); } } + // Renew + else if (GetSpellProto()->SpellFamilyFlags[0] & 0x00000040 && GetPartAura(0)) + { + Unit * caster = GetCaster(); + if (!caster) + return; + + // Empowered Renew + if (AuraEffect const * aurEff = caster->GetDummyAura(SPELLFAMILY_PRIEST, 3021, 1)) + { + int32 basepoints0 = aurEff->GetAmount() * GetPartAura(0)->GetTotalTicks() * caster->SpellHealingBonus(m_target, GetSpellProto(), GetPartAura(0)->GetAmount(), HEAL) / 100; + caster->CastCustomSpell(m_target, 63544, &basepoints0, NULL, NULL, true, NULL, GetPartAura(0)); + } + } } else if (GetSpellProto()->SpellFamilyName == SPELLFAMILY_ROGUE) { -- cgit v1.2.3