You mean something like this?
Granted this uses character sheet values so uses avoidance measured against a same level mob, not a raid boss three levels higher (hence needing the 102.4%, that's to compensate for the three levels difference in weapon skill versus your defense skill.Code:/run b=GetBlockChance() d=GetDodgeChance() p=GetParryChance() m=5 if UnitRace("player")=="Night Elf" then m=m+2 end a=m+d+p+b DEFAULT_CHAT_FRAME:AddMessage(a.."% Avoidance")
The syntax of a macro to do that would not have changed in Cataclysm, so if you had one before it should still work.
Also, this probably belongs in the User Interface, Addons, and Macro forums rather than the Theory forums. Chances are an admin may move it later.