• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • HasAura always returning true

    Discussion in 'Honorbuddy Support' started by grigap, Jan 10, 2012.

    1. grigap

      grigap New Member

      Joined:
      Dec 28, 2011
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      I'm trying to run the following line in a Frost DK cc

      Spell.Cast("Frost Strike", ret => StyxWoW.Me.HasAura("Killing Machine")),

      and find it is casting Frost Strike every time I have enough runic power regardless of whether Killing Machine is up. Are there any known issues or tricks to get HasAura working or with the Killing Machine aura? Any ideas would be much appreciated.
       
    2. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
      chances are if your spec'd for it, like its in your talent tree, you have whats called a passive buff. that sits on your toon modifying whatever spells.

      try this instead.
      Me.ActiveAuras.ContainsKey("Buffnamehere")
       
    3. grigap

      grigap New Member

      Joined:
      Dec 28, 2011
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      Genius! Thanks for the quick reply, that's working great.
       
    4. grigap

      grigap New Member

      Joined:
      Dec 28, 2011
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      OK So I am embarrassed to admit that me thinking it worked was simply because I had another line in my code that was casting the Frost Strikes. I downloaded Profile Helper to check auras. Killing Machine is always shown in the Profile Helper list of auras on me whether or not it is live in the WOW interface. None of the settings in Profile Helper change whether it is up or not.


      Killing Machine 51128 Killing Machine (Rank 3), Range: 0-0, CastTime: 0, Cost: 0 (0%), Mechanic: None, Dispel: None, TargetType: Unknown, Power: 0 ProcTriggerSpell 2.16173E+17 FirstEffect, NoCaster 0 0 0:00:00 0 0 FALSE TRUE FALSE FALSE

      The first idea was much appreciated. Any other thoughts?

      Cheers.
       
    5. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
      like i said, its a passive aura, passive aura's arent always shown, for example, "Fingers of Frost" is going to always be up because its a passive buff. (if your working on a mage) thats why in the code i gave you, your checking the ActiveBuffs list, not just buffs.
       

    Share This Page