fix(Core/Spells): Overflow damage (#13424)

This commit is contained in:
Angelo Venturini
2022-10-15 19:42:25 -03:00
committed by GitHub
parent 7530d6aff5
commit 252755415c
3 changed files with 3 additions and 3 deletions

View File

@@ -62,9 +62,9 @@ void Unit::UpdateDamagePhysical(WeaponAttackType attType)
float totalMin = 0.f;
float totalMax = 0.f;
float tmpMin, tmpMax;
for (uint8 i = 0; i < MAX_ITEM_PROTO_DAMAGES; ++i)
{
float tmpMin, tmpMax;
CalculateMinMaxDamage(attType, false, true, tmpMin, tmpMax, i);
totalMin += tmpMin;
totalMax += tmpMax;