What Weakauras is in World of Warcraft
this is the formula used to calcualate effective avoidance using weakauras, feel free to comment down below with any questions.
function()
-- Get your base avoidance stats from the game API
local dodge = GetDodgeChance() -- e.g., 20.35 means 20.35%
local parry = GetParryChance() -- e.g., 15.10 means 15.10%
local block = GetBlockChance() -- e.g., 10.00 means 10.00%
-- Add the +5% from Season of Discovery talents to Dodge and Parry
dodge = dodge + 5
parry = parry + 5
-- Convert each to decimals for the formula
local dodgeDec = dodge / 100
local parryDec = parry / 100
local blockDec = block / 100
-- Calculate total avoidance using the standard formula
local totalAvoidDec = 1 - (1 - dodgeDec) * (1 - parryDec) * (1 - blockDec)
local totalAvoidPct = totalAvoidDec * 100
-- Return a nicely formatted string for the text
return string.format("Effective Avoidance: %.2f%%", totalAvoidPct)
end