Core/Misc: Misc 3.3.5a fixes
This commit is contained in:
1 parent
f791d23dc7
commit
deac934b80
5 files changed
+19
-6
No files matched your search
@@ -2099,6 +2099,9 @@ uint32 Unit::CalculateDamage(WeaponAttackType attType, bool normalized, bool add
|
||||
}
|
||||
}
|
||||
|
||||
minDamage = std::max(0.f, minDamage);
|
||||
maxDamage = std::max(0.f, maxDamage);
|
||||
|
||||
if (minDamage > maxDamage)
|
||||
std::swap(minDamage, maxDamage);
|
||||
|
||||
|
||||
Reference in new issue
Block a user