Looks good! Just one tiny tweak:
Code:
/run local b,d,p,r,a=GetBlockChance(),GetDodgeChance(),GetParryChance(),GetCombatRating(CR_DEFENSE_SKILL) a=1/(.0625+.956/(r/122.9625)) ChatFrame1:AddMessage(format("Mitigation=%.2f%% Avoidance=%.2f%% Defense Rating calc %.0f",b+d+p+7+a,d+p+7+a,r-689))
(adding a in the declaration of local variables)
Edit - Okay, one more tweak, forcing the +/- on the defense rating check:
Code:
/run local b,d,p,r,a=GetBlockChance(),GetDodgeChance(),GetParryChance(),GetCombatRating(CR_DEFENSE_SKILL) a=1/(.0625+.956/(r/122.9625)) ChatFrame1:AddMessage(format("Unhittable: %.2f%% Avoidance: %.2f%% Defense %+.0f rating",b+d+p+7+a,d+p+7+a,r-689))
Bookmarks