From b30f3899416199867eb6ac785a7bba2d49141036 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 11 Apr 2009 23:13:41 -0500 Subject: [7654] Apply SPELLMOD_DAMAGE for %healing spells (48985 and ranks for example) Author: DiSlord --HG-- branch : trunk --- src/game/SpellEffects.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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) ); -- cgit v1.2.3