From 72a52af93e2ef9a5bc5d6b43f1c4beafa02a99e9 Mon Sep 17 00:00:00 2001 From: Splinter Date: Tue, 26 Jan 2010 23:01:01 +0300 Subject: [PATCH] [9259] Implement talent 52795 and ranks. Signed-off-by: VladimirMangos --- src/game/SpellAuras.cpp | 14 ++++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 9636fda5c..2f7d05fcc 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -6478,8 +6478,22 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real) case SPELLFAMILY_PRIEST: // Power Word: Shield if (m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000000001)) + { //+80.68% from +spell bonus DoneActualBenefit = caster->SpellBaseHealingBonus(GetSpellSchoolMask(m_spellProto)) * 0.8068f; + //Borrowed Time + Unit::AuraList const& borrowedTime = caster->GetAurasByType(SPELL_AURA_DUMMY); + for(Unit::AuraList::const_iterator itr = borrowedTime.begin(); itr != borrowedTime.end(); ++itr) + { + SpellEntry const* i_spell = (*itr)->GetSpellProto(); + if(i_spell->SpellFamilyName==SPELLFAMILY_PRIEST && i_spell->SpellIconID == 2899 && i_spell->EffectMiscValue[(*itr)->GetEffIndex()] == 24) + { + DoneActualBenefit += DoneActualBenefit * (*itr)->GetModifier()->m_amount / 100; + break; + } + } + } + break; case SPELLFAMILY_MAGE: // Frost Ward, Fire Ward diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 747b534a9..b24566adf 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9258" + #define REVISION_NR "9259" #endif // __REVISION_NR_H__