public async Task <bool> DestroyTotem(WoWUnit totem) { if (totem == null) { return(false); } Helpers.Logger.PrintLog(Colors.Red, "Totem Stomp on {1}", totem.Name); if (SpellManager.CanCast(Judgment.CRSpell, totem, true)) { return(await Judgment.Cast(totem)); } if (SpellManager.CanCast(AvengersShield.CRSpell, totem, true)) { return(await AvengersShield.Cast(totem)); } if (SpellManager.CanCast(HammerOfRighteous.CRSpell, totem, true)) { return(await HammerOfRighteous.Cast(totem)); } if (SpellManager.CanCast(ShieldOfTheRighteous.CRSpell, totem, true)) { return(await ShieldOfTheRighteous.Cast(totem)); } return(false); }
public async Task <bool> DestroyTotem(WoWUnit totem) { if (totem == null) { return(false); } Helpers.Logger.PrintLog("Totem Stomp on " + totem.Name); if (SpellManager.CanCast(Judgment.CRSpell, totem, true)) { return(await Judgment.Cast(totem)); } if (SpellManager.CanCast(BladeOfWrath.CRSpell, totem, true)) { return(await BladeOfWrath.Cast(totem)); } if (SpellManager.CanCast(CrusaderStrike.CRSpell, totem, true)) { return(await CrusaderStrike.Cast(totem)); } if (SpellManager.CanCast(Zeal.CRSpell, totem, true)) { return(await Zeal.Cast(totem)); } return(false); }
public async Task <bool> JudgmentMethod() { if (!await Judgment.Cast(Globals.CurrentTarget)) { return(false); } LastSpell = Judgment; return(true); }
public async Task <bool> JudgmentMethod() { var target = Globals.CurrentTarget; if (target == null || target.IsFriendly || !target.IsAlive) { target = Unit.UnfriendlyPlayers.OrderBy(u => u.HealthPercent).FirstOrDefault(u => u.HealthPercent < 80 && Unit.EnemiesAttackingTarget(u) > 0); } if (target == null || !target.IsAlive) { return(false); } if (!await Judgment.Cast(target)) { return(false); } LastSpell = Judgment; return(true); }