Cleanup
This commit is contained in:
@@ -53,14 +53,15 @@ function(allstates, e, prefix, msg, ...)
|
|||||||
|
|
||||||
if not prefix or prefix ~= aura_env.addonprefix then return end
|
if not prefix or prefix ~= aura_env.addonprefix then return end
|
||||||
local name, threat, note = string.split(aura_env.separator, msg)
|
local name, threat, note = string.split(aura_env.separator, msg)
|
||||||
|
threat = tonumber(threat)
|
||||||
if not name then
|
if not name then
|
||||||
if aura_env.config.debug then
|
if aura_env.config.debug then
|
||||||
print("Could not get name for " .. msg)
|
print("Could not get name for " .. msg)
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if threat < aura_env.config.threatThreshold then
|
if threat < aura_env.config.threatThreshold then
|
||||||
if aura_env.config.debug then
|
if aura_env.config.debug then
|
||||||
print(string.format("Skipping notify due to low threat (%d < %d)", threat, aura_env.config.threatThreshold))
|
print(string.format("Skipping notify due to low threat (%d < %d)", threat, aura_env.config.threatThreshold))
|
||||||
end
|
end
|
||||||
@@ -81,4 +82,4 @@ function(allstates, e, prefix, msg, ...)
|
|||||||
PlaySoundFile("Interface\\Sounds\\Domination.ogg", "Master")
|
PlaySoundFile("Interface\\Sounds\\Domination.ogg", "Master")
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|||||||
3
FreshShit/StinkyDetector/trigger.lua
Normal file
3
FreshShit/StinkyDetector/trigger.lua
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
function(t)
|
||||||
|
return t[3]
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user