Refactor try inspect to run every .5s

This commit is contained in:
2024-10-21 12:13:59 +02:00
parent 22ea650ebc
commit 8fd71da385
3 changed files with 17 additions and 10 deletions

View File

@@ -1,13 +1,4 @@
--- 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
aura_env.TryInspect()
end