示例#1
0
        public void Reset()
        {

            ParameterNames.Clear();
            Parameters.Clear();
            Status = InvokeStatus.Nono;
        }
示例#2
0
        public override async Task <bool> Invoke(double manaPercentFloor = 10)
        {
            if (Self.Self.Mana.Percent > manaPercentFloor.EvaluateAsPercentage())
            {
                return(false);
            }

            var didMageInvoke = false;

            if (_mageInvokeOrb != null)
            {
                didMageInvoke = await SpellCommands.CastAetheredSpell(Self, _mageInvokeOrb, _mageInvokeStatus);
            }

            if (didMageInvoke)
            {
                InvokeStatus.ResetStatusCooldown();
                return(true);
            }

            var didInvoke = await SpellCommands.CastAetheredSpell(Self, InvokeSpell, InvokeStatus, true);

            if (didInvoke)
            {
                _mageInvokeStatus?.ResetStatusCooldown();
            }

            return(didInvoke);
        }
示例#3
0
 public void AddParameter(object obj)
 {
     Parameters.Add(obj);
     if (ParameterNames.Count == Parameters.Count)
     {
         Status = InvokeStatus.Completed;
     }
 }
示例#4
0
        public void SetReturn(object obj)
        {
            Result = obj;


            if (ParameterNames.Count > 0)
            {
                Status = InvokeStatus.Parameter;
            }
            else
            {
                Status = InvokeStatus.Completed;
            }
        }
示例#5
0
        public void SetReturn(object obj)
        {
            Result = obj;


            if (ParameterNames.Count > 0)
                Status = InvokeStatus.Parameter;
            else
                Status = InvokeStatus.Completed;

        }
示例#6
0
        public void AddParameter(object obj)
        {
            Parameters.Add(obj);
            if (ParameterNames.Count == Parameters.Count)
                Status = InvokeStatus.Completed;

        }
示例#7
0
 public void Reset()
 {
     ParameterNames.Clear();
     Parameters.Clear();
     Status = InvokeStatus.Nono;
 }