Beispiel #1
0
        //Deal 8 damage to a minion.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.drawACard(CardDB.cardName.unknown, ownplay, false);
            //Dictionary<CardDB.cardIDEnum, int> deck =p.Decknow();
            int spellc = 0;
            int mobc   = 0;

            CardDB.Card c = null;


            foreach (KeyValuePair <CardDB.cardIDEnum, int> cid in p.Decknow())
            {
                c = CardDB.Instance.getCardDataFromID(cid.Key);
                if (c.type == CardDB.cardtype.MOB)
                {
                    mobc++;
                }
                else if (c.type == CardDB.cardtype.SPELL)
                {
                    spellc++;
                }
                if (cid.Key == CardDB.cardIDEnum.ULD_304)
                {
                    p.evaluatePenality -= 50;
                    p.drawACard(CardDB.cardName.unknown, ownplay, false);
                    break;
                }
            }
            if (mobc > 0 && spellc > 0)
            {
                p.drawACard(CardDB.cardName.unknown, ownplay, false);
            }

            //p.drawACard (CardDB.cardName.unknown,ownplay,false);
        }
Beispiel #2
0
        CardDB.Card kid = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.BOT_031); //Wolf

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            if(ownplay)
            {
                int n=p.ownMinions.Count;
                p.evaluatePenality -= 5*n;
                            foreach (KeyValuePair<CardDB.cardIDEnum, int> cid in p.Decknow())
                            {

                                if (cid.Key==CardDB.cardIDEnum.ULD_304)
                                {
                                    p.evaluatePenality -=5;
                                    break;
                                }
                            }
            }
        }