Ejemplo n.º 1
0
        public override object Evaluate(List <string> args, ExpressionEvaluator evaluator, Creature creature, Target target = null, CastedSpell spell = null, RollResults dice = null)
        {
            ExpectingArguments(args, 1);
            string spellId = evaluator.GetSpellId(spell);

            if (creature != null)
            {
                Conditions condition = Expressions.Get <Conditions>(args[0]);

                creature.AddSpellCondition(spellId, condition);
            }

            return(null);
        }