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.
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")
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.
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.