コード例 #1
0
ファイル: Sim_CS2_013.cs プロジェクト: JayMansel/silverfish
//    erhaltet einen leeren manakristall.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            if (ownplay)
            {
                if (p.ownMaxMana < 10)
                {
                    p.ownMaxMana++;
                }
                else
                {
                    p.drawACard(CardDB.cardName.excessmana, true, true);
                }

            }
            else
            {
                if (p.enemyMaxMana < 10)
                {
                    p.enemyMaxMana++;
                }
                else
                {
                    p.drawACard(CardDB.cardName.excessmana, false, true);
                }
            }
		}
コード例 #2
0
ファイル: Sim_CS2_077.cs プロジェクト: JayMansel/silverfish
//    zieht 4 karten.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            p.drawACard(CardDB.cardName.unknown, ownplay);
            p.drawACard(CardDB.cardName.unknown, ownplay);
            p.drawACard(CardDB.cardName.unknown, ownplay);
            p.drawACard(CardDB.cardName.unknown, ownplay);
		}
コード例 #3
0
ファイル: Sim_GvG_032b.cs プロジェクト: shuyi3/AIPJ
        //    Give each player a Mana Crystal.

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {

                p.drawACard(CardDB.cardName.unknown, true);
                p.drawACard(CardDB.cardName.unknown, false);
           
        }
コード例 #4
0
        //   At the end of each player's turn, that player draws until they have 3 cards.

        public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
        {

            int cardstodraw = 0;
            if (p.owncards.Count <= 2)
            {
                cardstodraw = 3 - p.owncards.Count; 
            }

            for (int i = 0; i < cardstodraw; i++)
            {
                p.drawACard(CardDB.cardIDEnum.None, true);
            }
            cardstodraw = 0;

            //draw enemys cards...
            if (p.enemyAnzCards <= 2)
            {
                cardstodraw = 3 - p.enemyAnzCards;
            }

            for (int i = 0; i < cardstodraw; i++)
            {
                p.drawACard(CardDB.cardIDEnum.None, false);
            }

        }
コード例 #5
0
        //Shuffle the Golden Monkey into your deck. Draw a card.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            if (p.isServer)
            {
                if (ownplay)
                {
                    p.ownDeckSize++;
                }
                else
                {
                    p.enemyDeckSize++;
                }
                p.drawACard(CardDB.cardIDEnum.None, ownplay, true);
                return;
            }

            if (ownplay)
            {
                p.ownDeckSize++;
            }
            else
            {
                p.enemyDeckSize++;
            }
            p.drawACard(CardDB.cardIDEnum.None, ownplay, true);

        }
コード例 #6
0
ファイル: Sim_AT_053.cs プロジェクト: cookiezeater/silverfish
        //    Draw 2 cards. Overload: (2)

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.changeRecall(ownplay, 2);
            p.drawACard(CardDB.cardIDEnum.None, ownplay);
            p.drawACard(CardDB.cardIDEnum.None, ownplay);
            
        }
コード例 #7
0
ファイル: Sim_BRM_030.cs プロジェクト: John4Jobs/silverfish
 //   Add 2 random spells to your hand (from your opponent's class).
 public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
 {
     if (own.own)
     {
         /*if (p.enemyHeroName == HeroEnum.druid)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.hunter)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.mage)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.pala)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.priest)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.shaman)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.thief)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.warlock || p.enemyHeroName == HeroEnum.lordjaraxxus)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }
         if (p.enemyHeroName == HeroEnum.warrior)
         {
             p.drawACard(CardDB.cardIDEnum.None, true, true);
             p.drawACard(CardDB.cardIDEnum.None, true, true);
         }*/
         p.drawACard(CardDB.cardIDEnum.BRM_030t, true, true);
         p.drawACard(CardDB.cardIDEnum.BRM_030t, true, true);
         
     }
     else
     {
         p.drawACard(CardDB.cardIDEnum.None, false, true);
         p.drawACard(CardDB.cardIDEnum.None, false, true);
     }
 }
コード例 #8
0
ファイル: Sim_GvG_028.cs プロジェクト: spanos123/silverfish
        //    Whenever your opponent casts a spell, gain a copy of it and give them a Coin.

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target)
        {
            if (c.type == CardDB.cardtype.SPELL && c.name != CardDB.cardName.gallywixscoin && wasOwnCard != triggerEffectMinion.own)
            {
                p.drawACard(c.cardIDenum, triggerEffectMinion.own, true);
                p.drawACard(CardDB.cardIDEnum.GVG_028t, wasOwnCard, true);
            }
        }
コード例 #9
0
ファイル: Sim__AT_053.cs プロジェクト: spanos123/silverfish
        //    Draw 2 cards. Overload: (2)

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            if (ownplay) { p.owedRecall += 2; } else { p.enemyRecall += 2; };

            p.drawACard(CardDB.cardIDEnum.None, ownplay);
            p.drawACard(CardDB.cardIDEnum.None, ownplay);
            
        }
コード例 #10
0
ファイル: Sim_NAX5_03.cs プロジェクト: shuyi3/AIPJ
        // Both players draw 2 cards and gain a Mana Crystal.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.drawACard(CardDB.cardName.unknown, true);
            p.drawACard(CardDB.cardName.unknown, false);
			
			p.mana = Math.Min(10, p.mana+1);
			p.ownMaxMana = Math.Min(10, p.ownMaxMana+1);
			p.enemyMaxMana = Math.Min(10, p.enemyMaxMana+1);
        }
コード例 #11
0
        //Battlecry: discover a deathrattle card

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            if (p.isServer)
            {
                p.drawACard(CardDB.cardIDEnum.None, own.own, true);
                return;
            }
            p.drawACard(CardDB.cardIDEnum.None, own.own, true);
        }
コード例 #12
0
        //bc: discover a powerful artifact.

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            if (p.isServer)
            {
                p.drawACard(CardDB.cardIDEnum.LOEA16_4, own.own, true);
                return;
            }
            //TODO add a choice card with all 3 artifacts?
            p.drawACard(CardDB.cardIDEnum.LOEA16_4, own.own, true);
        }
コード例 #13
0
ファイル: Sim_GvG_082.cs プロジェクト: noHero123/silverfish
        //   Deathrattle: Add a Spare Part card to your hand.

        public override void onDeathrattle(Playfield p, Minion m)
        {
            if (p.isServer)
            {
                p.drawACard(p.getRandomSparePart_SERVER(), m.own, true);
                return;
            }

            p.drawACard(CardDB.cardIDEnum.PART_001, m.own, true);
        }
コード例 #14
0
ファイル: Sim_Mekka1.cs プロジェクト: cookiezeater/silverfish
//    vernichtet zu beginn eures zuges diesen diener und zieht 3 karten.

        public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
        {
            if (turnStartOfOwner == triggerEffectMinion.own)
            {
                p.minionGetDestroyed(triggerEffectMinion);
                p.drawACard(CardDB.cardIDEnum.None, turnStartOfOwner);
                p.drawACard(CardDB.cardIDEnum.None, turnStartOfOwner);
                p.drawACard(CardDB.cardIDEnum.None, turnStartOfOwner);
            }
        }
コード例 #15
0
ファイル: Sim_AT_128.cs プロジェクト: cookiezeater/silverfish
        //Deathrattle: Reveal a minion in each deck. If yours costs more, return this to your hand.

        public override void onDeathrattle(Playfield p, Minion m)
        {
            if (p.isServer)
            {
                //TODO
                p.drawACard(CardDB.cardIDEnum.AT_128, m.own, true);
                return;
            }

            p.drawACard(CardDB.cardIDEnum.AT_128, m.own, true);
        }
コード例 #16
0
        //Choose one - Discover a minion; or Discover a spell.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            if (choice == 1 || (p.anzOwnFandralStaghelm > 0 && ownplay))
            {
                p.drawACard(CardDB.cardName.lepergnome, ownplay, true);
            }
            if (choice == 2 || (p.anzOwnFandralStaghelm > 0 && ownplay))
            {
                p.drawACard(CardDB.cardName.thecoin, ownplay, true);
            }
        }
コード例 #17
0
ファイル: Sim_EX1_014.cs プロジェクト: martdeboer/silverfish
//    kampfschrei:/ gebt eurem gegner 2 bananen.
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            p.drawACard(CardDB.cardIDEnum.EX1_014t, !own.own, true);
            if (own.own)
            {
                p.enemycarddraw -= 1;
            }
            p.drawACard(CardDB.cardIDEnum.EX1_014t, !own.own, true);
            if (own.own)
            {
                p.enemycarddraw -= 1;
            }
		}
コード例 #18
0
ファイル: Sim__LOE_047.cs プロジェクト: noHero123/silverfish
        //Battlecry: Discover a Beast.

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            if (p.isServer)
            {
                p.drawACard(CardDB.cardIDEnum.None, own.own, true);
                return;
            }
            p.drawACard(CardDB.cardIDEnum.None, own.own, true);
            //rogue= pit snake
            //warrior fierce monkey
            //hunter = all his cards? ^^
            //druid = mounted raptor, savage combatant, jungle moonkin, malorne
        }
コード例 #19
0
ファイル: Sim_NEW1_008.cs プロジェクト: martdeboer/silverfish
 //Zieht 2 Karten; oder stellt 5 Leben wieder her
 public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
 {
     if (choice == 2)
     {
         int heal = (own.own) ? p.getMinionHeal(5) : p.getEnemyMinionHeal(5);
         p.minionGetDamageOrHeal(target, -heal);
     }
     else
     {
         p.drawACard(CardDB.cardIDEnum.None, own.own);
         p.drawACard(CardDB.cardIDEnum.None, own.own);
     }
 }
コード例 #20
0
        //discover a minion

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            //TODO: make a difference :D

            if (p.isServer)
            {
                p.drawACard(CardDB.cardIDEnum.None, ownplay, true);
                return;
            }

            p.drawACard(CardDB.cardIDEnum.None, ownplay, true);

        }
コード例 #21
0
ファイル: Sim_BRM_013.cs プロジェクト: martdeboer/silverfish
        //    Deal $3 damage. If your hand is empty, draw a card


        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            int dmg = (ownplay) ? p.getSpellDamageDamage(3) : p.getEnemySpellDamageDamage(3);
            p.minionGetDamageOrHeal(target, dmg);
            if (ownplay && p.owncards.Count==0)
            {
                p.drawACard(CardDB.cardIDEnum.None, ownplay);
            }
            if (!ownplay && p.enemyAnzCards == 0)
            {
                p.drawACard(CardDB.cardIDEnum.None, ownplay);
            }
        }
コード例 #22
0
ファイル: Sim_AT_118.cs プロジェクト: cookiezeater/silverfish
        //Battlecry: Add a random Paladin card to your hand

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {

            if (p.isServer)
            {
                //TODO
                p.drawACard(CardDB.cardIDEnum.CS2_093, own.own, true); //consecration
                return;
            }

            p.drawACard(CardDB.cardIDEnum.CS2_093, own.own, true); //consecration

        }
コード例 #23
0
ファイル: Sim_NEW1_004.cs プロジェクト: shuyi3/AIPJ
//    lasst alle diener auf die hand ihrer besitzer zurückkehren.
        //todo clear playfield
        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.anzOwnRaidleader = 0;
            p.anzEnemyRaidleader = 0;
            p.anzOwnStormwindChamps = 0;
            p.anzEnemyStormwindChamps = 0;
            p.anzOwnTundrarhino = 0;
            p.anzEnemyTundrarhino = 0;
            p.anzOwnTimberWolfs = 0;
            p.anzEnemyTimberWolfs = 0;
            p.anzMurlocWarleader = 0;
            p.anzGrimscaleOracle = 0;
            p.anzOwnAuchenaiSoulpriest = 0;
            p.anzEnemyAuchenaiSoulpriest = 0;
            p.anzOwnsorcerersapprentice = 0;
            p.anzOwnsorcerersapprenticeStarted = 0;
            p.anzEnemysorcerersapprentice = 0;
            p.anzEnemysorcerersapprenticeStarted = 0;
            p.anzOwnSouthseacaptain = 0;
            p.anzEnemySouthseacaptain = 0;
            p.anzEnemyTaunt = 0;
            p.doublepriest = 0;
            p.enemydoublepriest = 0;
            p.ownBaronRivendare = 0;
            p.enemyBaronRivendare = 0;
            p.anzOwnChromaggus = 0;
            p.anzEnemyChromaggus = 0;

            p.spellpower = 0;
            p.enemyspellpower = 0;



            p.winzigebeschwoererin = 0;
            p.managespenst = 0;
            p.soeldnerDerVenture = 0;
            p.beschwoerungsportal = 0;
            p.nerubarweblord = 0;

            foreach (Minion m in p.ownMinions)
            {
                p.drawACard(m.name, true, true);
            }
            foreach (Minion m in p.enemyMinions)
            {
                p.drawACard(m.name, false, true);
            }
            p.ownMinions.Clear();
            p.enemyMinions.Clear();

        }
コード例 #24
0
//    zieht eine karte für jeden verletzten befreundeten charakter.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            List<Minion> temp = (ownplay)? p.ownMinions : p.enemyMinions;
            foreach (Minion mnn in temp )
            {
                if (mnn.wounded)
                {
                    p.drawACard(CardDB.cardIDEnum.None, ownplay);
                }
            }
            if (ownplay && p.ownHero.Hp < 30) p.drawACard(CardDB.cardIDEnum.None, true);
            if (!ownplay && p.enemyHero.Hp < 30) p.drawACard(CardDB.cardIDEnum.None, false);

		}
コード例 #25
0
        //todo secret
//    geheimnis:/ wenn ein befreundeter diener stirbt, erhaltet ihr 2 kopien dieses dieners auf eure hand.

        public override void onSecretPlay(Playfield p, bool ownplay, int number)
        {
            if (ownplay)
            {
                p.drawACard(p.revivingOwnMinion, ownplay, true);
                p.drawACard(p.revivingOwnMinion, ownplay, true);
            }
            else
            {
                p.drawACard(p.revivingEnemyMinion, ownplay, true);
                p.drawACard(p.revivingEnemyMinion, ownplay, true);
            }

        }
コード例 #26
0
ファイル: Sim_GvG_032.cs プロジェクト: martdeboer/silverfish
        //    Choose One - Give each player a Mana Crystal; or Each player draws a card.

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            if (choice == 1)
            {
                p.mana = Math.Min(10, p.mana + 1);
                p.ownMaxMana = Math.Min(10, p.ownMaxMana + 1);
                p.enemyMaxMana = Math.Min(10, p.enemyMaxMana + 1);
            }

            if (choice == 2)
            {
                p.drawACard(CardDB.cardIDEnum.None, true);
                p.drawACard(CardDB.cardIDEnum.None, false);
            }
        }
コード例 #27
0
ファイル: Sim_AT_044.cs プロジェクト: noHero123/silverfish
        //   Destroy a minion. Add a random minion to your opponent's hand.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {

            if (target != null)
            {
                p.minionGetDestroyed(target);
            }
            if (p.isServer)
            {
                //TODO
                p.drawACard(CardDB.cardIDEnum.None, !ownplay, true);
                return;
            }
            p.drawACard(CardDB.cardIDEnum.None, !ownplay, true);
        }
コード例 #28
0
ファイル: Sim_EX1_575.cs プロジェクト: JayMansel/silverfish
//    zieht am ende eures zuges eine karte.
        public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
        {
            if (turnEndOfOwner == triggerEffectMinion.own)
            {
                p.drawACard(CardDB.cardName.unknown, turnEndOfOwner);
            }
        }
コード例 #29
0
ファイル: Sim_EX1_100.cs プロジェクト: martdeboer/silverfish
//    wenn ein spieler einen zauber wirkt, erhält der andere spieler eine kopie desselben auf seine hand.

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion)
        {
            if (c.type == CardDB.cardtype.SPELL)
            {
                p.drawACard(c.cardIDenum, !wasOwnCard, true);
            }
        }
コード例 #30
0
ファイル: Sim_EX1_173.cs プロジェクト: JayMansel/silverfish
//    verursacht $5 schaden. zieht eine karte.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int dmg = (ownplay) ? p.getSpellDamageDamage(5) : p.getEnemySpellDamageDamage(5);
            p.minionGetDamageOrHeal(target, dmg);
            //this.owncarddraw++;
            p.drawACard(CardDB.cardName.unknown, ownplay);
		}