Add ignores to whosniffer

This commit is contained in:
2024-11-26 21:05:47 +01:00
parent dce05a3c44
commit 1c70cabc9a
2 changed files with 173 additions and 169 deletions

View File

@@ -2,6 +2,7 @@
function()
for i = 1, GetNumWhoResults() do
local name, guild, level, race, class, zone = GetWhoInfo(i)
if not aura_env.ignored[name] then
---@type WHOQuery
local query = aura_env.lastQuery
if not query then
@@ -46,6 +47,7 @@ function()
player.zone = zone
aura_env.stinkies[name] = player
end
end
-- Turns out WA cannot do this (
-- aura_env.UpdateMacro()
_G["FriendsFrameCloseButton"]:Click()

View File

@@ -1,6 +1,8 @@
if not WeakAurasSaved.Cyka then WeakAurasSaved.Cyka = {} end
if not WeakAurasSaved.Cyka.WhoSniffer then WeakAurasSaved.Cyka.WhoSniffer = {} end
aura_env.ignored = { "Maritza", "Goodbones" }
---@class aura_env
---@field raceMap table<string, string>
---@field stinkies table<string, Player>