*fix nourish.
--HG-- branch : trunk
This commit is contained in:
@@ -8826,6 +8826,15 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint
|
|||||||
TakenTotalMod *= ((*itr)->GetModifier()->m_amount+100.0f) / 100.0f;
|
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
|
// Healing taken percent
|
||||||
float minval = pVictim->GetMaxNegativeAuraModifier(SPELL_AURA_MOD_HEALING_PCT);
|
float minval = pVictim->GetMaxNegativeAuraModifier(SPELL_AURA_MOD_HEALING_PCT);
|
||||||
if(minval)
|
if(minval)
|
||||||
|
|||||||
Reference in New Issue
Block a user