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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user