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

Aura time left

tozededao

Community Developer
Joined
Jan 15, 2010
Messages
1,225
Reaction score
5
How do I check a target debuff timer? For example the remaining time of DoT's.
 
Code:
if(WoWAura.TimeLeft <= TimeSpan.FromSeconds(10))
 
Me.CurrentTarget.ActiveAuras.Values.First(v => v.Name == "Rupture" && v.CreatorGuid =

Code:
Me.CurrentTarget.Auras.Values.First(v => v.Name == "Rupture" && v.CreatorGuid == Me.Guid).TimeLeft.TotalSeconds < 2.5

This also ensures you actually check for your own aura, not someone else's.
Just be sure not to check for YOUR aura when it has shared spell mechanic, so it won't happen that you will cast it alternately with someone else.
 
Last edited:
Back
Top