Exemple #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);
        }
Exemple #2
0
        public async Task <bool> HammerOfRighteousMethod()
        {
            if (MyTalents.BlessedHammer.IsActive())
            {
                return(false);
            }

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

            LastSpell = HammerOfRighteous;
            return(true);
        }