Core/Spell:

* Fix SPELL_DAMAGE_CLASS_NONE calculation for SpellHealingBonusTaken
* Fix some codestyles
This commit is contained in:
Vincent-Michael
2012-05-13 21:07:59 +02:00
parent fa7e9d3c0d
commit ede623b473
+3
View File
@@ -11411,8 +11411,11 @@ uint32 Unit::SpellHealingBonusTaken(Unit* caster, SpellInfo const* spellProto, u
{
// No bonus healing for SPELL_DAMAGE_CLASS_NONE class spells by default
if (spellProto->DmgClass == SPELL_DAMAGE_CLASS_NONE)
{
healamount = int32(healamount * TakenTotalMod);
return healamount < 0 ? 0 : healamount;
}
}
// Default calculation
if (TakenAdvertisedBenefit)