tozededao Community Developer Joined Jan 15, 2010 Messages 1,225 Reaction score 5 Sep 12, 2011 #1 How do I check a target debuff timer? For example the remaining time of DoT's.
CodenameG New Member Joined Jan 15, 2010 Messages 38,364 Reaction score 231 Sep 12, 2011 #2 Code: if(WoWAura.TimeLeft <= TimeSpan.FromSeconds(10))
S strix New Member Joined Feb 13, 2010 Messages 442 Reaction score 18 Sep 13, 2011 #3 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: Sep 13, 2011
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.
tozededao Community Developer Joined Jan 15, 2010 Messages 1,225 Reaction score 5 Sep 19, 2011 #4 Just saw this now, thanks!