diff options
author | QAston <none@none> | 2009-02-28 16:34:53 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-02-28 16:34:53 +0100 |
commit | 142d8e765962096ecc9731df178692586d24fd49 (patch) | |
tree | b610e3bd24ae457e4bb7a33d09243ea3e0431483 /src/game/Unit.cpp | |
parent | 59b52105745af10530079a1807c14e5ce3b181c3 (diff) |
*fix nourish.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index fdbfdf1593c..e264b669e03 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8826,6 +8826,15 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint TakenTotalMod *= ((*itr)->GetModifier()->m_amount+100.0f) / 100.0f; } + // Nourish cast + if (spellProto->SpellFamilyName == SPELLFAMILY_DRUID && spellProto->SpellFamilyFlags[1] & 0x2000000) + { + // Rejuvenation, Regrowth, Lifebloom, or Wild Growth + if (pVictim->GetAura(SPELL_AURA_PERIODIC_HEAL, SPELLFAMILY_DRUID, 0x50, 0x4000010, 0)) + //increase healing by 20% + TakenTotalMod *= 1.2f; + } + // Healing taken percent float minval = pVictim->GetMaxNegativeAuraModifier(SPELL_AURA_MOD_HEALING_PCT); if(minval) |