Add achievement sniffer

This commit is contained in:
2024-10-21 11:54:59 +02:00
parent 5c6b37731d
commit 22ea650ebc
5 changed files with 254 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
--- PLAYER_TARGET_CHANGED
function()
local targetGuid = UnitGUID("target")
if not targetGuid then return end
if not string.match(targetGuid, "Player") then return end
local targetName = UnitName("target")
if not aura_env.config.recsan and WeakAurasSaved.Cyka.AchievementSniffer[targetName] then return end
-- aura_env.Scan(targetName)
local canInspect = CanInspect("target", true)
if canInspect then
SetAchievementComparisonUnit("target")
end
end