diff options
author | megamage <none@none> | 2009-04-11 23:13:41 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-11 23:13:41 -0500 |
commit | b30f3899416199867eb6ac785a7bba2d49141036 (patch) | |
tree | 292040b6c99fea47a7b420a694f75f7a7dc3e0e9 /src | |
parent | 6703cabbfb6554c13a2d7bcb2689c6da65f3764d (diff) |
[7654] Apply SPELLMOD_DAMAGE for %healing spells (48985 and ranks for example) Author: DiSlord
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 2697ee74604..de3ecea7387 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2594,6 +2594,9 @@ void Spell::EffectHealPct( uint32 /*i*/ ) return; uint32 addhealth = unitTarget->GetMaxHealth() * damage / 100; + if(Player* modOwner = m_caster->GetSpellModOwner()) + modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_DAMAGE, addhealth, this); + caster->SendHealSpellLog(unitTarget, m_spellInfo->Id, addhealth, false); int32 gain = unitTarget->ModifyHealth( int32(addhealth) ); |