Core/Misc: fix static analysis issues
CID 1373466 CID 1373481 CID 1373482 (cherry picked from commit e478434146fd479fab955aaa80eb925c15e29809)
This commit is contained in:
1 parent
58745ed8cc
commit
0e8422c30a
1 file changed
+1
-1
@@ -1683,7 +1683,7 @@ uint32 Unit::CalcSpellResistedDamage(Unit* victim, uint32 damage, SpellSchoolMas
|
||||
while (r >= probabilitySum && resistance < 10)
|
||||
probabilitySum += discreteResistProbability[++resistance];
|
||||
|
||||
float damageResisted = float(damage * resistance / 10);
|
||||
float damageResisted = damage * resistance / 10.f;
|
||||
if (damageResisted > 0.0f) // if any damage was resisted
|
||||
{
|
||||
int32 ignoredResistance = GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_IGNORE_TARGET_RESIST, schoolMask);
|
||||
|
||||
Reference in new issue
Block a user