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

Buffs/Debuffs and TimeLeft

Nightskine

Member
Joined
Oct 30, 2010
Messages
150
Reaction score
1
I've been having serious troubles writting a druid CC with detection of Buffs and Debuffs.

Something as simple as

if (!Me.CurrentTarget.HasAura("Mangle")
{CastSpell("Mangle");}

doesn't seem to work. I have CastSpell set to cast the spell if available and off CD.


Another problem is I cant seem to get the timeleft on debuffs or buffs.

I beleive I used something like

if(Me.CurrentTarget.Auras["Mangle"].TimeLeft.Seconds <=2)
{CastSpell("Mangle");}

That does nothing either. I thought if the code wasnt right HB wouldnt accept it as a CC.
Anyone know why these arent working or the right code for this?
 
druid are a bit special compared to other classes. cause their forms share some abilities like Mangle. There's on Mangle for Cat and one for Bear.

code would be:
if (!Me.CurrentTarget.HasAura("Mangle")
{CastSpell("Mangle (Cat)");}
 
Oh ok,thanks. That's why it didnt work. Funny, I even tried Mangle (Cat Form) last night, like you would need to in a WoW macro but that didnt work either.

Any ideas on how to get the timer to work?
that would really help, thanks.
 
Read about TimeSpan. 'Seconds' is the number of seconds into the minute. You want to use 'TotalSeconds'.
 
Back
Top