Пример #1
0
        public static void CancelAura(this WoWUnit unit, string aura)
        {
            WoWAura a = unit.GetAuraByName(aura);

            if (a != null && a.Cancellable)
            {
                a.TryCancelAura();
            }
        }
Пример #2
0
 public static double GetAuraTimeLeft(string aura, WoWUnit u = null)
 {
     if (u == null) { u = Me; }
     WoWAura wa = u.GetAuraByName(aura);
     return wa != null ? wa.TimeLeft.TotalSeconds : 0;
 }