Exemple #1
0
        /// <summary>
        /// Runs from combat
        /// </summary>
        public override CommandResult Execute(CommandEventArgs commandEventArgs)
        {
            try
            {
                base.Execute(commandEventArgs);
            }
            catch (StateException)
            {
                return(CommandResult.Failure("You have nothing to flee from."));
            }
            catch (CommandException ex)
            {
                return(ex.CommandResult);
            }

            CombatHandler.Exit(commandEventArgs.Entity.Instance);
            return(CommandResult.Success("You run from combat."));
        }