Fix: make sure healing potions doesn't benefit from spellhealing-power - patch by maxdestroyer

--HG--
branch : trunk
This commit is contained in:
click
2010-07-04 20:17:22 +02:00
parent a11391b3c0
commit 1416c83394

View File

@@ -10692,6 +10692,10 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint
if (Unit* owner = GetOwner())
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
// Taken/Done total percent damage auras
float DoneTotalMod = 1.0f;