Total avoidance macro
I'm looking for a Cataclysm up-to-date version of the old avoidance calculation macro that included defense and probably more retro things/values.
Im not expert in writing scripts could someone correct this macro for Warrior class please?
/script DEFAULT_CHAT_FRAME:AddMessage("Need 102.4 combined avoidance. Currently at:",0.8,0.8,1)
/script DEFAULT_CHAT_FRAME:AddMessage(GetDodgeChance()+GetBlockChance() + GetParryChance() +5+(GetCombatRatingBonus(CR_DEFENSE_SKILL) + 20)*0.04,1,0.5,0)
Thanks for your time!
I assume by the fact that your macro is looking for the unhittable threshold that you are running it as a block tank (Paladin/Warrior).
/run u,t=UnitLevel("player"),88 ld,d,p,b,m=0.2*(u-t),GetDodgeChance(),GetParryChance(),GetBlockChance(),5 DEFAULT_CHAT_FRAME:AddMessage(format("Lvl: "..t.." Unhit: %.2f%% Avoid: %.2f%%",d+p+b+m+ld*4,d+p+m+ld*3))
This macro will automatically shift values to their correct actual number in practice (on a 100% scale rather than a 102.4% scale). Level of the target is hardcoded to 88 in this variation however you could alter it. If you are a Night Elf you would need to alter the value for miss from 5 to 7.
Found the post I was looking for in my old subscriptions... took a while.
Originally Posted by Quinafoi