Esempio n. 1
0
        private static void AddCounters(ScenarioCard scenarioCard, Card card)
        {
            if (scenarioCard.HasCounters)
            {
                var p = new ModifierParameters
                {
                    SourceCard = card,
                };

                var counters = new AddCounters(() => new SimpleCounter(scenarioCard.Counters.Type),
                                               scenarioCard.Counters.Count);

                card.AddModifier(counters, p);
            }
        }
Esempio n. 2
0
        private static void AddCounters(ScenarioCard scenarioCard, Card card)
        {
            if (scenarioCard.HasCounters)
            {
                var p = new ModifierParameters
                {
                    SourceCard = card,
                };

                var counters = new AddCounters(() =>
                {
                    if (scenarioCard.Counters.Type == CounterType.PowerToughness)
                    {
                        return(new PowerToughness(1, 1));
                    }

                    return(new SimpleCounter(scenarioCard.Counters.Type));
                }, scenarioCard.Counters.Count);

                card.AddModifier(counters, p);
            }
        }
Esempio n. 3
0
 protected ScenarioEffect E(ScenarioCard scenarioCard)
 {
     return(new ScenarioEffect {
         Effect = () => Game.Stack.First(x => x.Source.OwningCard == scenarioCard.Card)
     });
 }
Esempio n. 4
0
 protected Card C(ScenarioCard scenarioCard)
 {
     return(scenarioCard);
 }