How to detect "toggleable" pet abilities?

  • 10 posts
    #1 Mar 25, 2011 at 02:44 UTC - 0 likes

    To wit, I want to make sure that growl is *ON* while soloing and *OFF* in any instance/raid.


    #2 Mar 25, 2011 at 15:14 UTC - 0 likes

    For my hunters, I simply use a macro with my opening shot (or with Hunter's Mark) that sets the pet behavior based on group status.

    For instance:

    /cast Hunter's Mark
    /petautocaston [group] Cower; [nogroup] Growl
    /petautocastoff [nogroup] Cower; [group] Growl

    You could even consider putting /petaggressive and /petdefensive in there if you like to set that mode based on group status.

    #3 Mar 26, 2011 at 11:28 UTC - 0 likes

    cool, perfect for my little twink huntard! :)

    #4 Mar 28, 2011 at 02:22 UTC - 0 likes

    Great idea JC!

    But... I'm still curious is there's some way to see a WeakAuras warning for my slack ass versus making sure all my common attacks are overly long macros ;D

    #5 Mar 28, 2011 at 03:11 UTC - 0 likes

    There is a way to do it, but it requirea a Custom Trigger. The necessary wow API function is GetSpellAutocast. For example:

    Trigger Type: Custom

    Event Type: Status

    Check On...: Event(s)

    Event(s): PET_BAR_UPDATE

    Custom Trigger:

      local _, auto = GetSpellAutocast("Growl")
      return auto

    Custom Untrigger:

      local _, auto = GetSpellAutocast("Growl")
      return not auto
    #6 Mar 28, 2011 at 03:42 UTC - 0 likes

    I'm not sure if I said it before, but it bears repeating.

    (a) WeakAuras ROCKS (2) Your hands on support does too =D

    #7 Mar 28, 2011 at 04:25 UTC - 0 likes

    @Dethedrus: Go

    Thanks :3

    #8 Apr 04, 2011 at 16:26 UTC - 0 likes

    I'll just hijack this thread (evil me :>).

    I tried to do the same today for auto-shot (Hunter) using ACTIONBAR_UPDATE_STATE and IsAutoRepeatSpell (IsCurrentSpell works too). Both IsAutoRepeatSpell and IsCurrentSpell return valid values, but it seems like ACTIONBAR_UPDATE_STATE is only fired when Auto-Shot is enabled, but not when its disabled. As a work-around I'm currently just using "ever-frame" + "In Combat".
    Any idea if there is another event for this? (ACTIONBAR_UPDATE_COOLDOWN and ACTIONBAR_UPDATE_USABLE don't work either)

    #9 Apr 04, 2011 at 21:06 UTC - 0 likes

    No clue. I don't have a Hunter so I can't really check. If you didn't know, /eventtrace is your friend in situations like this.

    #10 Apr 05, 2011 at 16:33 UTC - 0 likes

    @Mirrormn: Go

    Ah cool, didn't know about this. :)

    Last edited Apr 05, 2011 by CommanderSirow
  • 10 posts

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