diff options
author | p0wer <none@none> | 2009-12-19 22:17:19 -0600 |
---|---|---|
committer | p0wer <none@none> | 2009-12-19 22:17:19 -0600 |
commit | 9218ebce9d97b2b27397aa98d28fac9e43584949 (patch) | |
tree | 4cffa4df7462aeaa8a14bf537a03581697142714 /src | |
parent | 9e2b42661a3a83e350fc7adc974e7979fe71f333 (diff) |
Fix Tenacity to increase heal %. Patch by corfen. Closes #825.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 4f3e90bf507..ae694ffbdbf 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -10270,6 +10270,11 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint TakenTotalMod *= (HealingWay->GetAmount() + 100.0f) / 100.0f; } + // Tenacity increase healing % taken
+ if (AuraEffect const* Tenacity = pVictim->GetAuraEffect(58549, 0))
+ TakenTotalMod *= (Tenacity->GetAmount() + 100.0f) / 100.0f;
+ + // Healing taken percent float minval = pVictim->GetMaxNegativeAuraModifier(SPELL_AURA_MOD_HEALING_PCT); if (minval) |