WeakAuras-Trying to hide a trigger when another trigger present

For my Prot Paladin, I have one trigger to tell me when I get a Divine Purpose proc (works awesomely). However, I want this trigger to not advertise itself when another event is happening, specifically when my Shield of the Righteous buff (id 132403) is greater than 9 seconds.

I figured I can use two triggers in a single WeakAura. Trigger 1 would be the Divine Purpose proc, trigger two would be the SotR buff at less than 9 seconds but it’s the SotR that I can’t figure out, specifically the Show On option. I’ve tried testing the SotR aura by itself and it works when I have the buff itself, but when the buff falls off, the aura turns off too.

I want to figure out how to trigger the aura when the buff’s timer isn’t above 9 seconds. I want the trigger to exist even when I don’t have the buff.

You need 3 triggers.

  1. Divine Purpose
  2. Shield of the Righteous under 9 seconds
  3. Shield of the Righteous missing

You then need to set a custom function as the activation, rather than “All triggers” or “Any triggers”.

function(t) return t[1] and (t[2] or t[3])end

That tells the aura to always require trigger 1, and to work if either 2 or 3 are met.

I tested this just now and it works perfectly, here is the import string, change the spell names and the timers to the ones you need.

!WA:2!Drv3UTrru4AfqGwQGwtAeneAnrIQgKiQ1rKRGlYgSBtLJT76nKarv2ZU7z9mPRNzzMzTt6D1x1R9f8a4RrCHFeYtWkluFa6JqEc4mZAhAzVyNzo)8D(z(otP6LhuoQC0B2CkluW7iYKHWg3qEER4yfOljVyXMzeEiviBlyCDW(1A6xZBEOqKejgX7mILc9UC5XAr9bQRbUEJ1sw)(Gu93pqUy7BRkHbL3zcjts4KbGA90v3tLcH6kI4kAkuXptQtGPrqqwCS)fPG8P1A0U(rn8GHag9NcKen9DQSa752siMDUxN21A0WZIOJBgNPdstixaYXi2jjhePCU2JoiUSZN1D)9643TJ)EE(ZWCQfgiIwi38N(zzMcAIi1ZvJH3ZKQvdqzEWa6Km(IkX5b5o)z(NvUA(nxFsBHstjknmFarhsbvhQyul(Lk7YEHA2qi)o5RL)55Fr(6ymY3i)BY)6E53Rx(9lqYi4MRNxj)BNx41HmLIX7BD7E0cVqpmr0GY9DMfXuNLXTGheMP0IbPLlw9lYXgI(SW0Fi2AKG)q9wvKG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