Core/Spells: change spell bonus damage taken pdamage to float to match melee damage bonus taken

This commit is contained in:
Kandera
2012-05-16 11:05:11 -04:00
parent ac844f9953
commit ea4815b528
+1 -1
View File
@@ -10875,7 +10875,7 @@ uint32 Unit::SpellDamageBonusTaken(Unit* caster, SpellInfo const* spellProto, ui
TakenTotal+= int32(TakenAdvertisedBenefit * coeff * factorMod);
}
float tmpDamage = (int32(pdamage) + TakenTotal) * TakenTotalMod;
float tmpDamage = (float(pdamage) + TakenTotal) * TakenTotalMod;
return uint32(std::max(tmpDamage, 0.0f));
}