Exemplo n.º 1
0
 public static double DebuffTimeLeft(this TorCharacter p, string buffName)
 {
     return(!p.HasMyDebuff(buffName)
                         ? 0
                         : p.Debuffs.FirstOrDefault(b => b.Name.Contains(buffName) && b.CasterGuid == BuddyTor.Me.Guid).TimeLeft.TotalSeconds);
 }
Exemplo n.º 2
0
 public static int DebuffCount(this TorCharacter p, string buffName)
 {
     return(!p.HasMyDebuff(buffName)
                         ? 0
                         : p.Debuffs.FirstOrDefault(b => b.Name.Contains(buffName) && b.CasterGuid == BuddyTor.Me.Guid).GetStacks());
 }