Disclaimer: I am very bad at custom code
Alright guys, first off I'd like to just say that I don't need this weak aura to work, it's just that it's pissing me off that I can't make it work. I have something that does the same thing, but isn't bullet proof. It's also nice when things are automated AND bulletproof.
What I want to accomplish: When I reset a challenge mode I want to start announcing a timer starting from 2 minutes (Not using BigWigs/DBM timer), which is the cooldown to reset it again.
Whenever you reset a challenge mode an event happens called "CHALLENGE_MODE_RESET"
Trigger:
Code:
function(event, CHALLENGE_MODE_RESET)
local cmTimer = SendChatMessage("2:00 Until reset is ready!", PARTY)
if event == CHALLENGE_MODE_RESET then
return true
end
end
Untrigger:
Code:
function()
return true
end
function:
Code:
function()
return cmTimer
end
Alright, so this is the base of it, it actually has a few more things to make a 1:30, 1:00, 0:30 and "reset ready" to happen, but it's not part of the problem.
This aura will trigger when you enter a challenge mode(without it being started) OR if you close weak auras options while inside a challenge mode that hasn't been started. I guess the event CHALLENGE_MODE_RESET constantly triggers while at a start of a challenge mode, and not only when you reset the dungeon.
So this makes my aura go off whenever I enter a challenge mode, so it just spams away like mad.
Anyone have a clever solution or is the event CHALLENGE_MODE_RESET too flawed?