What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

StyxWoW.Me.HasAura and Singular cc's ?

Ruinit

Member
Joined
Nov 1, 2010
Messages
992
Reaction score
4
I am trying to update/fix/edit/improve some of the singular dps spec's and learning this coding as I go :( Seems that everyone has different methods :(

Anyway what's wrong with this code?

Code:
Spell.Cast("Starsurge", ret => StyxWoW.Me.HasAura("Shooting Stars")),

Trying to get moonkin to only cast Stargesurge when I have the proc/buff "Shooting Stars". But it seem to fire it every time it is off cooldown

Tia
 
I am trying to update/fix/edit/improve some of the singular dps spec's and learning this coding as I go :( Seems that everyone has different methods :(

Anyway what's wrong with this code?

Code:
Spell.Cast("Starsurge", ret => StyxWoW.Me.HasAura("Shooting Stars")),

Trying to get moonkin to only cast Stargesurge when I have the proc/buff "Shooting Stars". But it seem to fire it every time it is off cooldown

Tia
maybe this will make more sense.
Code:
  //Fingers of Frost Proc - DeepFreeze
             new Decorator(ret => SpellManager.CanCast("Deep Freeze") && (Me.ActiveAuras.ContainsKey("Fingers of Frost") || Me.CurrentTarget.HasAura("Frost Nova") || Me.CurrentTarget.HasAura("Freeze")),
                    new PrioritySelector(
                        CreateSpellCheckAndCast("Deep Freeze")
                        )),

Since "Deep Freeze" and Shooting Stars Give off passive aura's they are always up, because they are learned in the talent tree, Using. Me.ActiveAura. checks to make sure the buff actually procs.
 
Yeah I found this in another cc and tried it but it didn't work at all.

Code:
Spell.Cast("Starsurge", ret => StyxWoW.Me.ActiveAuras.ContainsKey("Shooting Stars")),

I think what you posted is the target debuff? Shooting stars is a played buff/aura/proc
 
Last edited:
Yeah I found this in another cc and tried it but it didn't work at all.

Code:
Spell.Cast("Starsurge", ret => StyxWoW.Me.ActiveAuras.ContainsKey("Shooting Stars")),

I think what you posted is the target debuff? Shooting stars is a played buff/aura/proc

Spell.Cast("Starsurge", ret => StyxWoW.Me.ActiveAuras.ContainsKey("Shooting Stars")), works just tested it.
 
Spell.Cast("Starsurge", ret => StyxWoW.Me.ActiveAuras.ContainsKey("Shooting Stars")), works just tested it.

Not saying it doesn't cast, saying it doesn't work as intended. It casts Starsurge every time it's off CD, I want it to only cast when shooting stars proc's.
 
The best way I found to use something that isn't working is to do something like this:

Code:
public static WoWAura Stars
{
    get
    {
        return StyxWoW.Me.GetAuraById(93399);
    }
}

And then in your code area do this:

Spell.Cast("Starsurge", ret => Stars != null),

This helped me especially with Slam. Using the above stuff it always cast it. When using the me.activeauras.containskey it didn't use it all the time for whatever reason.
 
Back
Top