예제 #1
0
        // TODO: Add customData parameter?
        public override object Evaluate(List <string> args, ExpressionEvaluator evaluator, Creature player, Target target, CastedSpell spell, RollResults dice = null)
        {
            ExpectingArguments(args, 1, 2);

            string shortcutName    = evaluator.Evaluate <string>(args[0]);
            bool   rollImmediately = false;

            if (args.Count > 1)
            {
                rollImmediately = Expressions.GetBool(args[1], player, target, spell, dice);
            }

            player.AddShortcutToQueue(shortcutName, rollImmediately);

            return(null);
        }