WeakAuras

177 - Add Inverse to Action Usable

I want to have an texture shown if I have "The Art of War" but not when I can use "Hammer of Wrath", there is "Action Usable" for the Hammer-part but I can't inverse it (only show when "Action is NOT usable"), could you please add it?

I thought of doing it in another way:
I have an extra texture for when "Hammer of Wrath" is usable, can I make something like "only show the Art-Of-War-Texture if the Hammer-Of-Wrath-Texture is not shown" ? That would be a custom trigger, but I can't seem to find an example or any documentation how to do this.
Thanks for all you hard work! Keep it up!!

User When Change
Mirrormn May 28, 2011 at 20:25 UTC Changed status from New to Fixed
Ravengus May 26, 2011 at 08:42 UTC Create

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

  • 6 comments
  • Avatar of Mirrormn Mirrormn May 28, 2011 at 20:24 UTC - 0 likes

    I don't exactly remember why I avoided adding an Inverse option to the Action Usable trigger. I think it had something to do with the necessity of ignoring global cooldowns. Anyway, this is added in r161.

  • Avatar of CommanderSirow CommanderSirow May 26, 2011 at 17:04 UTC - 0 likes

    Okey that makes things a bit more complicated. If WA triggers could be concatenated using combinations of AND and OR it would be easy. (I think its currently that way to have simple trigger-update/re-evaluate rules)

    EDIT: Neverwind, took a look at WA code and I was wrong! ^^

    • Trigger Type: Custom
    • Event Type: Events
    • Events: SPELL_COOLDOWN_READY, SPELL_COOLDOWN_CHANGED, SPELL_COOLDOWN_STARTED, SPELL_UPDATE_USABLE, PLAYER_TARGET_CHANGED, UNIT_POWER
    • Custom Trigger:
    function ()
      return not IsUsableSpell("SpellName")
    end
    
    Last edited May 26, 2011 by CommanderSirow
  • Avatar of Ravengus Ravengus May 26, 2011 at 16:47 UTC - 0 likes

    It's a little more complex than that...
    AoW = Art of War Buff
    HoW = Hammer of Wrath

    if AoW and (HoW.onCD or (!Wings or TargetHealth>20))
    


    is impossible to do without custom triggers or Action unusable.

    For the custom trigger I'd need something like IsActionUsable, but this needs the actionbar slot, as well as GetActionCooldown needs an actionbar slot...

  • Avatar of CommanderSirow CommanderSirow May 26, 2011 at 16:33 UTC - 0 likes

    I can't quite remember why there was no inverse option on "Action-Usable" but I'm sure there was one. For now uses ccKeeps trick + add additional triggers for "no wings" (aura -> wings -> inverse) and enemy above 20% (status -> health -> "> 20%").

    Last edited May 26, 2011 by CommanderSirow
  • Avatar of Ravengus Ravengus May 26, 2011 at 12:06 UTC - 0 likes

    The display ccKep describes is "show Texture if Art of War is present and Hammer of Wrath has no cooldown".

    I want to have a display "show Texture if Art of War is present and Hammer is NOT usable - either on Cooldown or no Wings or Enemy over 20% where the ability is greyed out (unusable) but not on cooldown".

    Last edited May 26, 2011 by Ravengus
  • Avatar of ccKep ccKep May 26, 2011 at 09:41 UTC - 0 likes

    1. Create a Texture or Icon Display

    2. Trigger Configuration
    2.1 Main Trigger
    - Type: Status
    - Status: Cooldown Progress (Spell)
    - Spell: Hammer of Wrath
    - Inverse: Yes

    2.2 Add a second Trigger
    - Type: Aura
    - Aura(s): The Art of War
    - Unit: Player
    - Aura Type: Buff

    3. At the top:
    - Required for Activation: All Triggers

  • 6 comments

Facts

Last updated
May 28, 2011
Reported
May 26, 2011
Status
Fixed - Developer made requested changes. QA should verify.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees