Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ()
- local now = GetTime();
- WA_STATS_LAST_UP = WA_STATS_LAST_UP or now - 1;
- if now >= WA_STATS_LAST_UP + 0.1 then
- WA_STATS_LAST_UP = now;
- local agi = select(1, UnitStat("player", 2));
- local mas = GetMasteryEffect();
- local has = UnitSpellHaste("player");
- local crit = GetSpellCritChance(6);
- WA_STATS_RETURN = string.format([[
- Agi: %.0f
- Mastery: %.1f
- Haste: %.1f
- Crit: %.1f]],
- agi or 0,
- mas or 0,
- has or 0,
- crit or 0
- );
- end
- return WA_STATS_RETURN or "<no data>";
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement