// 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); } } }
// 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); }
// 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); }
// 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); } }
//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); }
// 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); }
// 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); } }
// 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); } }
// 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); }
// 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); }
//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); }
//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); }
// 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); }
// 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); } }
//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); }
//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); } }
// 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; } }
//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 }
//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); } }
//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); }
// 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); } }
//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 }
// 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(); }
// 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); }
//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); } }
// 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); } }
// 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); }
// 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); } }
// 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); } }
// 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); }