Exemplo n.º 1
0
        // Whenever your opponent casts a spell, add a Coin to your hand.

        public override void OnCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target, int choice)
        {
            if (c.type == CardDB.cardtype.SPELL && wasOwnCard != triggerEffectMinion.own)
            {
                p.drawACard(CardDB.cardName.thecoin, triggerEffectMinion.own);
            }
        }
Exemplo n.º 2
0
 // Battlecry: Discard a random card.
 public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
 {
     p.discardACard(own.own);
 }
Exemplo n.º 3
0
        public override void OnAdaptChoice(Playfield p, bool ownplay, Minion target, CardDB.cardIDEnum choice)
        {
            List <Minion> temp = p.ownMinions;

            switch (choice)
            {
            case CardDB.cardIDEnum.UNG_999t3:      // 3attack
            {
                p.minionGetBuffed(target, 3, 0);
                break;
            }

            case CardDB.cardIDEnum.UNG_999t8:    //divine shield
            {
                target.divineshild = true;
                break;
            }

            case CardDB.cardIDEnum.UNG_999t13:     //poisonous
            {
                target.poisonous = true;
                break;
            }

            case CardDB.cardIDEnum.UNG_999t14:    // +1/+1
            {
                p.minionGetBuffed(target, 1, 1);
                break;
            }

            case CardDB.cardIDEnum.UNG_999t4:    // 3hp
            {
                p.minionGetBuffed(target, 0, 3);
                break;
            }

            case CardDB.cardIDEnum.UNG_999t2:    //deathrattle 2 1/1 plants
            {
                target.livingspores++;
                break;
            }

            case CardDB.cardIDEnum.UNG_999t7:     //windfury
            {
                p.minionGetWindfurry(target);
                break;
            }

            case CardDB.cardIDEnum.UNG_999t6:     //taunt
            {
                target.taunt = true;
                break;
            }

            case CardDB.cardIDEnum.UNG_999t10:    //stealth
            {
                target.stealth = true;
                break;
            }

            case CardDB.cardIDEnum.UNG_999t5:    //can't be targeted
            {
                target.AdaptedCantBeTargetedBySpellsOrHeroPowers++;
                break;
            }

            default: break;
            }
        }
Exemplo n.º 4
0
        //  Deathrattle: Deal 2 damage to all minions.

        public override void onDeathrattle(Playfield p, Minion m)
        {
            p.allMinionsGetDamage(2);
        }
Exemplo n.º 5
0
 public override void OnCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target, int choice)
 {
     if (wasOwnCard == triggerEffectMinion.own && c.type == CardDB.cardtype.SPELL)
     {
         int place = (wasOwnCard)? p.ownMinions.Count : p.enemyMinions.Count;
         p.callKid(card, place, wasOwnCard);
     }
 }
Exemplo n.º 6
0
        //   Taunt

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
        }
Exemplo n.º 7
0
        CardDB.Card kid = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_160t); //panther
//    ruft einen panther (3/2) herbei.

        public override void OnCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            int posi = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;

            p.callKid(kid, posi, true);
        }
Exemplo n.º 8
0
        //   At the start of each turn, gain +1 Attack.

        public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
        {
            p.minionGetBuffed(triggerEffectMinion, 1, 0);
        }
Exemplo n.º 9
0
        //insprire: gain Spell Damage +1

        public override void OnInspire(Playfield p, Minion m)
        {
            p.minionGetTempBuff((m.own) ? p.ownHero : p.enemyHero, 2, 0);
        }
Exemplo n.º 10
0
//    vernichtet einen diener. euer gegner zieht 2 karten.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.minionGetDestroyed(target);
            p.drawACard(CardDB.cardIDEnum.None, !ownplay);
            p.drawACard(CardDB.cardIDEnum.None, !ownplay);
        }
Exemplo n.º 11
0
 public override void onDeathrattle(Playfield p, Minion m)
 {
     p.callKid(kid, m.zonepos - 1, m.own);
 }
Exemplo n.º 12
0
        CardDB.Card c = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_017); //nerubian
//    spott. todesröcheln:/ euer gegner legt einen diener aus seinem deck auf das schlachtfeld.
        public override void OnDeathrattle(Playfield p, Minion m)
        {
            int place = (m.own) ? p.enemyMinions.Count : p.ownMinions.Count;

            p.callKid(c, place, !m.own);
        }
Exemplo n.º 13
0
 // erhält jedes Mal +1/+1, wenn Ihr eine Karte mit uberladung&lt; ausspielt.
 public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target, int choice)
 {
     if (wasOwnCard == triggerEffectMinion.own && c.Recall)
     {
         p.minionGetBuffed(triggerEffectMinion, 1, 1);
     }
 }
Exemplo n.º 14
0
        //   Battlecry:&lt;/b&gt; Gain 5 Armor.

        public override void GetBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            p.minionGetArmor(own.own ? p.ownHero : p.enemyHero, 5);
        }
Exemplo n.º 15
0
 public override void onMinionIsSummoned(Playfield p, Minion triggerEffectMinion, Minion summonedMinion)
 {
     if (summonedMinion.handcard.card.race == TAG_RACE.MURLOC)
     {
         p.minionGetBuffed(triggerEffectMinion, 1, 0);
     }
 }
Exemplo n.º 16
0
        // Deal 2 damage to all minions.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            int dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);

            p.allMinionsGetDamage(dmg);
        }
Exemplo n.º 17
0
 public override void onMinionDiedTrigger(Playfield p, Minion triggerEffectMinion, Minion diedMinion)
 {
     if (diedMinion.handcard.card.race == TAG_RACE.MURLOC)
     {
         p.minionGetBuffed(triggerEffectMinion, -1, 0);
     }
 }
Exemplo n.º 18
0
        //    kampfschrei:/ stellt bei eurem helden 6 leben wieder her.
        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            int heal = (own.own) ? p.getMinionHeal(6) : p.getEnemyMinionHeal(6);

            p.minionGetDamageOrHeal(own.own ? p.ownHero : p.enemyHero, -heal);
        }
Exemplo n.º 19
0
 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
 }
Exemplo n.º 20
0
//    todesröcheln:/ fügt eurer hand ein zufälliges wildtier hinzu.
        public override void onDeathrattle(Playfield p, Minion m)
        {
            p.drawACard(CardDB.cardIDEnum.CS2_120, m.own, true);
        }
Exemplo n.º 21
0
        //    Deal $2 damage to all enemy minions and Freeze them.
        public override void OnCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            int dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);

            p.allMinionOfASideGetDamage(!ownplay, dmg, true);
        }
Exemplo n.º 22
0
        //  Battlecry: Draw a card. If it's a minion, transform it into a Chicken.

        public override void GetBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            p.drawACard(CardDB.cardIDEnum.None, own.own);
        }
Exemplo n.º 23
0
        //Taunt Battlecry: Deal 2 damageto all other minions.

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            p.allMinionsGetDamage(2);
        }
Exemplo n.º 24
0
//    kampfschrei:/ verursacht 2 schaden.
        public override void GetBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            p.minionGetDamageOrHeal(target, 2);
        }
Exemplo n.º 25
0
        public override void onSecretPlay(Playfield p, bool ownplay, Minion attacker, Minion target, out int number)
        {
            number = 0;
            if (ownplay)
            {
                int posi = p.ownMinions.Count;
                p.callKid(kid, posi, true);
                if (p.ownMinions.Count >= 1)
                {
                    if (p.ownMinions[p.ownMinions.Count - 1].name == CardDB.cardName.spellbender)
                    {
                        number = p.ownMinions[p.ownMinions.Count - 1].entityID;
                    }
                }
            }
            else
            {
                int posi = p.enemyMinions.Count;
                p.callKid(kid, posi, false);

                if (p.enemyMinions.Count >= 1)
                {
                    if (p.enemyMinions[p.enemyMinions.Count - 1].name == CardDB.cardName.spellbender)
                    {
                        number = p.enemyMinions[p.enemyMinions.Count - 1].entityID;
                    }
                }
            }
        }
Exemplo n.º 26
0
        //After you cast a spell, Freeze a random enemy character.

        public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target, int choice)
        {
            if (triggerEffectMinion.own == wasOwnCard && c.type == CardDB.cardtype.SPELL)
            {
                Minion        target2 = null;
                List <Minion> temp    = (wasOwnCard) ? p.enemyMinions : p.ownMinions;
                if (temp.Count > 0)
                {
                    target2 = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP);
                }
                if (target2 == null)
                {
                    target2 = (wasOwnCard) ? p.enemyHero : p.ownHero;
                }
                target2.frozen = true;
            }
        }
Exemplo n.º 27
0
//    fügt eurer hand zwei zufällige dämonen aus eurem deck hinzu.

        public override void OnCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.drawACard(CardDB.cardIDEnum.None, ownplay);
            p.drawACard(CardDB.cardIDEnum.None, ownplay);
        }
Exemplo n.º 28
0
        //Battlecry: Adapt, then Adapt.

        public override void GetBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            p.getBestAdapt(own);
            p.getBestAdapt(own);
        }
Exemplo n.º 29
0
 public override float getPlayPenalty(Playfield p, Handmanager.Handcard hc, Minion target, int choice, bool isLethal)
 {
     return(0);
 }
Exemplo n.º 30
0
 //    todesröcheln:/ fügt dem feindlichen helden 2 schaden zu.
 public override void onDeathrattle(Playfield p, Minion m)
 {
     p.minionGetDamageOrHeal(m.own ? p.enemyHero : p.ownHero, 2);
 }