Example #1
0
        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);
        }
Example #2
0
        public async Task <bool> ShieldOfRighteousMethod()
        {
            if (LastSpell == ShieldOfTheRighteous || Helpers.Globals.HasShieldOfRighteous)
            {
                return(false);
            }

            // TODO bastion of light talent
            if (MyTalents.Seraphim.IsActive() && !Seraphim.CRSpell.Cooldown && ShieldOfTheRighteous.CRSpell.GetChargeInfo().ChargesLeft < 3)
            {
                return(false);
            }

            if (!await ShieldOfTheRighteous.Cast(Helpers.Globals.CurrentTarget))
            {
                return(false);
            }

            LastSpell = ShieldOfTheRighteous;
            return(true);
        }