コード例 #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);
        }
コード例 #2
0
        public async Task <bool> AvengersShieldMethod()
        {
            if (!await AvengersShield.Cast(Globals.CurrentTarget))
            {
                return(false);
            }

            LastSpell = AvengersShield;
            return(true);
        }