Core/Spell: Fix SpellDamageBonusTaken calculation for negative value
This commit is contained in:
1 parent
c05c16a8de
commit
b90cb5878d
1 file changed
+1
-1
@@ -10875,7 +10875,7 @@ uint32 Unit::SpellDamageBonusTaken(Unit* caster, SpellInfo const* spellProto, ui
|
||||
TakenTotal+= int32(TakenAdvertisedBenefit * coeff * factorMod);
|
||||
}
|
||||
|
||||
float tmpDamage = (pdamage + TakenTotal) * TakenTotalMod;
|
||||
float tmpDamage = (int32(pdamage) + TakenTotal) * TakenTotalMod;
|
||||
|
||||
return uint32(std::max(tmpDamage, 0.0f));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user