WeakAuras

Overpower-Aura

  • 6 posts
    #1 May 03, 2011 at 12:59 UTC - 0 likes

    Hi, I want an aura that is shown when Overpower is usuable, regardless of rage and stance. Overpower can be used if one of two conditions is met:

    1. you have a Buff called TfB
    2. for 5 seconds after one of your attacks were dodged

    What I did:

    Required for Activation: Any Triggers

    Main Trigger: Event - Combat Log

    • Message Prefix: Spell
    • Message Suffix: Missed
    • Source Unit: Player
    • Miss Type: Dodge
    • Hide: Timed
    • Duration: 5

    Trigger 2: Aura

    • Aura: Taste for Blood
    • Unit: Player
    • Aura Type: Buff

    This functions very well but one detail is missing: How can I add another Custom Untrigger for the Main Trigger that disables the aura after I used Overpower during these 5 seconds?

    dOZKeaGAHcTlGsVMQumtQcZvOOzd4MavDBiomv2PKAVODty)Gk)eOYWiL8BbxtOIHkbgmiA4s1bfQ6EuLshts6YQwiPyPsOwmqwojpKQKNQSmQsvpx0eLeMQuMSqMoLlkbDvHs9mHkDDO2ivPYNPQ2mOSDq6Jaf9vGctdu13bbJuOK5juWOPkA8siNKuQVjj60eDEj6Xq6VKQXbcnRYghcxexeBCoHeXzYGGnU0CkJnoRSFUU65nUU65noFvac04qCsbBCwz)CD1ZBCD1ZBCDmqEACWKcz6jBCwz)CD1ZBCD1ZBCWCrNgnotj99VInUmGvOhlKgxhWvEfxew5mzqWfhoCEDSqAudN6ioPqk85Qc24WHZRJiZSv2p1WHZRJ8mD(NA4uhXjfsHVEOFLZckUyWB5qXPfq09ugDouCAbeouCAbeooRSFUd9cJdfNwar3k7NlnNHtUed6qVWgggmzrC6Gx7TcRGdrMzRSFUkaxfGzHC486QJ4KcPWNA4o0lmoVciGCgCq6rWNl7haO2HCwxzCHi8CyXHEHXzsKhXHZRN9dau7qobXDOxyjhhoVEgWk0JfsJA4W51JEAyH0iiouppQ3WDOxyCrpnSqACDax5v04GfegxdcEDHb(MMaqehqWfXghoVokGltQHdNxxCOxrqC486z)Oeex2pkBCiyatYgRRsn0OXHZRJgqa5mQHdfWLjBCPu4dCoWi(IlwBWvmnACQ7ldIwz)Cs0GGdnaeuSXA4zTwGTsACoSfiiUizgJybQjHEQHZffjnzq4a0nL03)QKnwxLnotj99VInoRSFohw54smOd9cRa1HjlIBfuOhEWLyqh6f2WWGjlIt3R4xtFT4lUXHfsJRd4kVIt4qEYgRRY1CPD4GewqbhKAacHiACh6fgxSUdW8Kl6GWWG1k7Nlwf6rbExS9GghwykPV)vSrJgnoSWusF)RyJl7haO2HCwxzCHi8CzaRqpwinUoGR8kouCAbeooCE9mGvOhlKgbrJtgX5faCqcgofCqcUcGdYyNNZb090XATaBLCrYSd4k1gni40wyxbZH(yQnAqKXmEqsaPvQd(d8xHdX5Fo0qaikabbbXzViZRaqqXgRHN1ArJgxYPQ69qKdkRRcVwArJea
    

    Another possible solution for the entire problem could be a Custom Trigger with isSpellOverlayed, but the one I created doesn't work.

    Main Trigger: Custom - Status

    • Check on Event: SPELL_ACTIVATION_OVERLAY_GLOW_SHOW, SPELL_ACTIVATION_OVERLAY_GLOW_HIDE
    • Custom Trigger:
      function()
        if(IsSpellOverlayed(7384) == 1) then
          return true
        else
          return false
        end
      end
      
    • Custom Untrigger:
      function()
        if(IsSpellOverlayed(7384) ~= 1) then
          return true
        else
          return false
        end
      end
      
    #2 May 03, 2011 at 18:02 UTC - 0 likes

    Simply using the Action Usable trigger might be sufficient for this purpose.

    Barring that, my solution would probably be to make a Custom Trigger that updates on COMBAT_LOG_EVENT_UNFILTERED which triggers when any of your attacks is dodged, and untriggers either when you cast Overpower or when a 5-second AceTimer timer goes off. If Action Usable is not suitable for your needs, I could elaborate on this method.

    Last edited May 03, 2011 by Mirrormn
    #3 May 03, 2011 at 21:41 UTC - 0 likes

    Action Usuable does not work because the aura wouldn't be shown if I have less than 5 rage or I'm not in Battle Stance (and mainly this aura is used to show if I should switch to Battle Stance because Overpower would be usuable).

    Thanks in advance...

    #4 May 03, 2011 at 23:23 UTC - 0 likes

    I see.

    Well, here's what I would use:

    Required For Activation: Any Triggers

    Main Trigger: Custom - Status

    • Check on Event: COMBAT_LOG_EVENT_UNFILTERED, OVERPOWER_END
    • Custom Trigger:
      function(event, _, message, _, _, source, _, _, _, _, missType)
        if(event == "COMBAT_LOG_EVENT_UNFILTERED_CUSTOM" and UnitIsUnit(source or "", "player") and message == "SWING_MISSED" and missType == "DODGE") then
          WeakAurasTimers:ScheduleTimer(WeakAuras.ScanEvents, 5, "OVERPOWER_END")
          return true
        end
      end
      
    • Custom Untrigger:
      function(event, _, message, _, _, source, _, _, _, _, _, spelName)
        if(event == "COMBAT_LOG_EVENT_UNFILTERED_CUSTOM") then
          if(message == "SPELL_CAST_SUCCESS" and UnitIsUnit(source or "", "player") and spellName == "Overpower") then
            return true
          end
        elseif(event == "OVERPOWER_END") then
          return true
        end
      end
      

    Trigger 2: Aura

    • Name: Taste For Blood

    Note that I didn't have time to test this yet (nor do I even have a Warrior in the first place) so it may be buggy and/or not work!

    Last edited May 03, 2011 by Mirrormn
    #5 May 04, 2011 at 10:35 UTC - 0 likes

    Thank you very much, works very nice now...

    Custom - Status

    Check on Event: COMBAT_LOG_EVENT_UNFILTERED

    Custom Trigger:

    function(event, _, message, _, _, source, _, _, _, _, _, _, missTypeSwing, _, _, missTypeSpell)
        if(UnitIsUnit(source or "", "player") and (message == "SWING_MISSED" and missTypeSwing == "DODGE") or (message == "SPELL_MISSED" and missTypeSpell == "DODGE")) then
            return true
        end
    end
    

    Custom Untrigger:

    function(event, _, message, _, _, source, _, _, _, _, _, _, _, spellName)
        if(message == "SPELL_CAST_SUCCESS" and UnitIsUnit(source or "", "player") and spellName == "Overpower") then
            return true
        elseif((message == "SPELL_AURA_APPLIED" or message == "SPELL_AURA_REFRESH") and UnitIsUnit(source or "", "player") and spellName == "Taste for Blood") then
            return true
        end
    end
    

    Duration Info:

    function()
        return 5, GetTime() + 5
    end
    
    deK1maGiIAucQtjqVcPGmleTlrQAyseDmKQ8mKczAIu5Ase(gLkghsHADifW8qkOUNQQdQkSqvLEisLjskDrrSrjs9rk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xEW))a5tTKuPIPz7UeTYdQIIbkzmwsLoF6mf1G))bYAdO1(e5GbhGuNfJWGbdgmyWGbgg1mIbitJhHbdgmGffJalk8ZsD2Qu(XHybYpCJwoelqxtJMmn7xKUhNu8KE8uYpoelqy)OlqAFFiftfW(yc9tikf)qS02sjL8mrRJ8RjqM87lBCj)SAyuxXpnnHfk3fH5qSaroisoqHX46ltoisoisoa3BglMCqKCqKCqKCqKCqKCqKCqKCawNPOiwv4GJWGbdgK1ewHX46lp4)FG8PwsQur6ECsX7dD0LCN8GQOyWhrgzd)rKrHX9MXIh0ndKLjhiRtvvXg5GdQIIbyDMIIyvHh8)pqoqi2O3lNnYbhGuNfJWGbdgmyWGbgg1mIbitJhHbdgmGPWCwt4WkmgxF5b))dKp1ssLk(4ZZhXhQPwkBjALh0nduymU(Yd()hiFQLKkv8XNNpIptk9ZKJMKdoOkkg8rKr2WFezuyCVzS4bDZazzYbY6uvvSro4GQOyawNPOiwv4b))dKLQyepqt3m4lvVxihCasDwmcdgmyWGbdgyyuZigGmnEegmyWawumcSOWroYr(vP0vV6elz6TJFfzmnytyHYHy)RFfzSovvLnRUWpBceB0uTy7AZQlW29bTzQmsvmnMIzTvL6l7hIPzeDDQUXLCIPZjwsh5i)QUKFsvmIhOPBg8LQ3l8ZMaXgnvl2U2S6cSDFqBMkJufF2FBCKMAIx2OPB(s17foYVqor6LUswsh5o
    
    Last edited Aug 19, 2011 by Serivola
    #6 Aug 12, 2011 at 12:46 UTC - 0 likes

    Better working aura one post above...

    Last edited Aug 19, 2011 by Serivola
  • 6 posts

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