Talk:Damage Calculator/@comment-15871805-20130901111534/@comment-11753608-20130901170714

Okay, maybe I am just not explaining it clearly. If you change the crit chance for slam damage to 0 instead of N/A, the outcome will be the same and you don't have to do the check. But let's look at an attack that has 0% chance to crit without the shields thing in the way:

((TotalDmg * (1 - CritChance)) + (TotalCritDmg * CritChance) + (4 * DOTTick)),

It will turn out to be (TotalDmg * 1) + (CritDmg * 0) + 4*DOTtick. That reduces to TotalDmg +4*DOT  Which is exactly what it needs to be for anything that has 0% chance to crit and that would also work for Slam Damage if you changed it to 0 instead of N/A. That also works inside the Shields/Health equation.

So, then Shields and HP. If Shields are 0, then you still don't need a check because it basically comes out to:

(HP/(Shields+HP))*TotalDamage + (Shields/(Shields+HP))*TotalDamage

This turns out to be

1*TotalDamage + 0. and it all works out.