Beispiel #1
0
        public IEnumerable<FightStep> Execute(Game game, Character initiator, Character target)
        {
            // Go through types that have actions and perform them all.
            if (Types.Contains(FeatType.NORMAL_DAMAGE))
            {
                initiator.GetMainAttack().Execute(game, initiator, target);
            }

            // Apply any effect.
            if (EffectParams != null)
            {
                target.AddEffect(game.GetEffect(EffectParams));
            }
            yield break;
        }