fix(Core/Spells): Overflow damage (#13424)
This commit is contained in:
parent
7530d6aff5
commit
252755415c
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue