Does anyone know how to add Improved rake to this Weak Aura for tracking Rake damage?
Display:
function()
local record = WA_CRC and WA_CRC["Rake"] and WA_CRC["Rake"][UnitGUID("target")]
if(record) then
return string.format("%i", (record.Agility * (1 + record.Mastery * 0.01)) or 0)
else
return "error"
end
end
Animation:
function(progress, r1, g1, b1, a1, r2, g2, b2, a2)
local record = WA_CRC and WA_CRC["Rake"] and WA_CRC["Rake"][UnitGUID("target")]
local cur_agi = select(1, UnitAttackPower("player")) * 0.312 * WA_MULTIPLIER * (1 + GetMastery() * 0.03125)
if record and (cur_agi > (record.Agility * (1 + record.Mastery * 0.01))) then
return r1, g1, b1, a1
end
return r2, g2, b2, a2
end
The full WA here:
http://pastebin.com/TwWBAwTz