Entities/Unit: fix an unrelated check from doing nothing because somebody didn't understand how type-casting works

Port From (https://github.com/TrinityCore/TrinityCore/commit/4330b7c921203486174fa818908b74d06f61c9f8)
This commit is contained in:
hondacrx
2022-01-02 12:36:51 -05:00
parent 24e4068761
commit c9621dcbe1
+1 -1
View File
@@ -3553,7 +3553,7 @@ namespace Game.Entities
return damage;
float mitigation = Math.Min(armor / (armor + armorConstant), 0.85f);
return Math.Max((uint)(damage * (1.0f - mitigation)), 0);
return (uint)Math.Max(damage * (1.0f - mitigation), 0.0f);
}
public uint MeleeDamageBonusDone(Unit victim, uint damage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo spellProto = null, SpellSchoolMask damageSchoolMask = SpellSchoolMask.Normal)