[7654] Apply SPELLMOD_DAMAGE for %healing spells (48985 and ranks for example) Author: DiSlord
--HG-- branch : trunk
This commit is contained in:
@@ -2594,6 +2594,9 @@ void Spell::EffectHealPct( uint32 /*i*/ )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
uint32 addhealth = unitTarget->GetMaxHealth() * damage / 100;
|
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);
|
caster->SendHealSpellLog(unitTarget, m_spellInfo->Id, addhealth, false);
|
||||||
|
|
||||||
int32 gain = unitTarget->ModifyHealth( int32(addhealth) );
|
int32 gain = unitTarget->ModifyHealth( int32(addhealth) );
|
||||||
|
|||||||
Reference in New Issue
Block a user