Example #1
0
        public async Task <bool> BlessingOfFreedomMethod()
        {
            if (LastSpell == BlessingOfFreedom)
            {
                return(false);
            }

            var target = Global.BlessingOfFreedom.Check(BlessingOfFreedom);

            if (target == null)
            {
                return(false);
            }

            Helpers.Logger.DiagnosticLog("Hand of Freedom on {0}, Distance: {1}, LOS: {2}", target.SafeName, target.Distance, target.InLineOfSpellSight);

            if (!await BlessingOfFreedom.Cast(target))
            {
                return(false);
            }

            Helpers.Logger.PrintLog("Used Hand of Freedom on {0}", target.SafeName);

            LastSpell = BlessingOfFreedom;
            return(true);
        }
Example #2
0
        public async Task <bool> BlessingOfFreedomMethod()
        {
            if (LastSpell == BlessingOfFreedom)
            {
                return(false);
            }

            var target = Global.BlessingOfFreedom.Check(BlessingOfFreedom);

            if (target == null)
            {
                return(false);
            }

            if (!await BlessingOfFreedom.Cast(target))
            {
                return(false);
            }

            Helpers.Logger.PrintLog("Used Hand of Freedom on {0}", target.SafeName);

            LastSpell = BlessingOfFreedom;
            return(true);
        }