예제 #1
0
 public static double BuffTimeLeft(this TorCharacter p, string buffName)
 {
     return(!p.HasMyBuff(buffName)
                         ? 0
                         : p.Buffs.FirstOrDefault(b => b.Name.Contains(buffName) && b.CasterGuid == BuddyTor.Me.Guid).TimeLeft.TotalSeconds);
 }
예제 #2
0
 public static int BuffCount(this TorCharacter p, string buffName)
 {
     return(!p.HasMyBuff(buffName)
                         ? 0
                         : p.Buffs.FirstOrDefault(b => b.Name.Contains(buffName) && b.CasterGuid == BuddyTor.Me.Guid).GetStacks());
 }