Fix: make sure healing potions doesn't benefit from spellhealing-power - patch by maxdestroyer
--HG-- branch : trunk
This commit is contained in:
@@ -10692,6 +10692,10 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint
|
|||||||
if (Unit* owner = GetOwner())
|
if (Unit* owner = GetOwner())
|
||||||
return owner->SpellHealingBonus(pVictim, spellProto, healamount, damagetype, stack);
|
return owner->SpellHealingBonus(pVictim, spellProto, healamount, damagetype, stack);
|
||||||
|
|
||||||
|
// no bonus for heal potions/bandages
|
||||||
|
if (spellProto->SpellFamilyName == SPELLFAMILY_POTION /*|| spellProto->Mechanic == MECHANIC_BANDAGE*/ )
|
||||||
|
return healamount;
|
||||||
|
|
||||||
// Healing Done
|
// Healing Done
|
||||||
// Taken/Done total percent damage auras
|
// Taken/Done total percent damage auras
|
||||||
float DoneTotalMod = 1.0f;
|
float DoneTotalMod = 1.0f;
|
||||||
|
|||||||
Reference in New Issue
Block a user