[7654] Apply SPELLMOD_DAMAGE for %healing spells (48985 and ranks for example) Author: DiSlord

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-11 23:13:41 -05:00
parent 6703cabbfb
commit b30f389941
+3
View File
@@ -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) );