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

            DamageType damageType = (DamageType)Expressions.Get(args[0], player, target, spell);
            AttackKind attackKind = (AttackKind)Expressions.Get(args[1], player, target, spell);

            player.AddDamageResistance(damageType, attackKind);
            return(null);
        }