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); }
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()); }