Files
wow-weakauras/FreshShit/AchievementSniffer/event2.lua

14 lines
443 B
Lua

--- INSPECT_ACHIEVEMENT_READY
function()
local targetGuid = UnitGUID("target")
if not targetGuid then return end
if not string.match(targetGuid, "Player") then return end
local targetName = UnitName("target")
local should = false
if not WeakAurasSaved.Cyka.AchievementSniffer[targetName] then should = true end
if aura_env.config.rescan then should = true end
if not should then return end
aura_env.Scan(targetName)
end