mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7654] Apply SPELLMOD_DAMAGE for %healing spells (48985 and ranks for example)
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
5c660c844f
commit
db429d2a20
2 changed files with 4 additions and 1 deletions
|
|
@ -2500,6 +2500,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) );
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7653"
|
#define REVISION_NR "7654"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue