public override object Evaluate(List <string> args, ExpressionEvaluator evaluator, Creature player, Target target, CastedSpell spell, RollResults dice = null)
        {
            ExpectingArguments(args, 1);

            Ability ability = (Ability)Expressions.GetInt(args[0], player, target, spell);

            return(player.GetAbilityModifier(ability));
        }
        public override object Evaluate(List <string> args, ExpressionEvaluator evaluator, Character player, Target target, CastedSpell spell, DiceStoppedRollingData dice = null)
        {
            ExpectingArguments(args, 1);

            RecalcOptions recalcOptions = evaluator.Evaluate <RecalcOptions>(args[0]);

            player.Recalculate(recalcOptions);
            return(null);
        }
Exemplo n.º 3
0
        public override object Evaluate(List <string> args, ExpressionEvaluator evaluator, Character player, Target target, CastedSpell spell, DiceStoppedRollingData dice = null)
        {
            ExpectingArguments(args, 1);
            Feature feature = AllFeatures.Get(args[0]);

            if (feature != null)
            {
                feature.Activate("", player, true);
            }

            return(null);
        }