public static void CancelAura(this WoWUnit unit, string aura) { WoWAura a = unit.GetAuraByName(aura); if (a != null && a.Cancellable) { a.TryCancelAura(); } }
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; }