示例#1
0
        public static Unit weatherMage(string Name, string description, Clan clan, Card option1, Card option2, Card option3, params Tag[] tags)
        {
            Unit self = new Unit();

            self.setAttributes(clan, Rarity.silver, Name);
            self.setUnitAttributes(4, tags);
            self.setOnDeploy((s, f) =>
            {
                List <Card> vars = new List <Card>()
                {
                    option1, option2, option3
                };
                s.host.playCard(SpawnSpecial.addSpecialToGame(s.host.selectCard(vars, s.QestionString()) as Special, s));
                s._show.redrawCausedChangeValue();
            }, description);
            return(self);
        }
示例#2
0
        public static void applyHazzardOnDeployWithoutCard(Card s, Special analogCard, TriggerTurnRowEffect hazzardEffect)
        {
            Player enemy = s.host.chooseEnemy(s.context, s.QestionString());
            int    row   = s.host.chooseEnemyRow(enemy, s.QestionString());

            // there is a little trick
            // instead of creating unique birna roweffect,
            // we create a DOOMed version of skelligian storm
            // and apply (DO NOT PLAY) it to choosen row
            // after it it will dissappear in banish

            Special st = SpawnSpecial.addSpecialToGame(analogCard, s);

            st.move(Place.banish);
            RowEffect hazz = new RowEffect(st, enemy, row);

            hazz.SetBehaviour(hazzardEffect);
        }
示例#3
0
        public override Card spawnDefaultCopy(Player newHost, Card sourceOfMakeingCopy)
        {
            Special copy = this.spawnCard() as Special;

            return(SpawnSpecial.addSpecialToGame(copy, sourceOfMakeingCopy));
        }