public void Reset() { ParameterNames.Clear(); Parameters.Clear(); Status = InvokeStatus.Nono; }
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); }
public void AddParameter(object obj) { Parameters.Add(obj); if (ParameterNames.Count == Parameters.Count) { Status = InvokeStatus.Completed; } }
public void SetReturn(object obj) { Result = obj; if (ParameterNames.Count > 0) { Status = InvokeStatus.Parameter; } else { Status = InvokeStatus.Completed; } }
public void SetReturn(object obj) { Result = obj; if (ParameterNames.Count > 0) Status = InvokeStatus.Parameter; else Status = InvokeStatus.Completed; }
public void AddParameter(object obj) { Parameters.Add(obj); if (ParameterNames.Count == Parameters.Count) Status = InvokeStatus.Completed; }