WeakAuras

combat under status

  • 3 posts
    #1 Oct 04, 2011 at 23:30 UTC - 0 likes

    Currently in combat is only checked for whether or not the aura will load. However I have an aura that I need to go away when combat ceases but I need the aura to be active outside of combat because it checks a combat log event which it won't catch if I open with that ability. Is there any way to put combat under the status options?

    #2 Oct 05, 2011 at 15:37 UTC - 0 likes

    Use a custom trigger: ;)

    • Type: Custom -> Event
    • Events: PLAYER_REGEN_ENABLED, PLAYER_REGEN_DISABLED
    • Show code:
    function(event)
      if event == "PLAYER_REGEN_DISABLED" then -- In combat
        return true;
      end
    end
    
    • Hide code:
    function(event)
      if event == "PLAYER_REGEN_ENABLED" then -- Left combat
        return true;
      end
    end
    
    Last edited Oct 05, 2011 by CommanderSirow
    #3 Oct 06, 2011 at 10:22 UTC - 0 likes

    @CommanderSirow: Go

    thanks a bunch, works like a charm.

  • 3 posts

You must login to post a comment. Don't have an account? Register to get one!