Tumble files around a bit
This commit is contained in:
29
WeakAuras/Projects/StinkyDetector/event.lua
Normal file
29
WeakAuras/Projects/StinkyDetector/event.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
-- COMBAT_LOG_EVENT_UNFILTERED
|
||||
---@param e string
|
||||
function(e, ...)
|
||||
local detected = false
|
||||
local stinky = ""
|
||||
|
||||
local source, err = CLEUParser.GetSourceName(...)
|
||||
if not err then
|
||||
if aura_env.stinkies[source] then
|
||||
stinky = source
|
||||
detected = true
|
||||
end
|
||||
end
|
||||
if not detected then
|
||||
local destination, err = CLEUParser.GetDestName(...)
|
||||
if not err then
|
||||
if aura_env.stinkies[destination] then
|
||||
stinky = destination
|
||||
detected = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if detected then
|
||||
aura_env.StinkyDetected(stinky)
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
Reference in New Issue
Block a user