Пример #1
0
        //   When you play or discard this, deal $4 damage to a random enemy.<

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

            int dmg = (ownplay) ? p.getSpellDamageDamage(4) : p.getEnemySpellDamageDamage(4);
            if (p.isServer)
            {
                Minion choosen = p.getRandomMinionFromSide_SERVER(!ownplay, true);
                if (choosen != null) p.minionGetDamageOrHeal(choosen, dmg);
                return;
            }
            p.doDmgToRandomEnemyCLIENT2(dmg, true, ownplay);
        }
Пример #2
0
        //  Deathrattle: Deal 1 damage to a random enemy.

        

        public override void onDeathrattle(Playfield p, Minion m)
        {
            if (p.isServer)
            {
                int randdmg = 1;
                Minion poortarget = p.getRandomMinionFromSide_SERVER(!m.own, true);
                if (poortarget != null) p.minionGetDamageOrHeal(poortarget, randdmg);
                return;
            }

            p.doDmgToRandomEnemyCLIENT2(1, true, m.own);

        }
Пример #3
0
        //Whenever you target this minion with a spell, deal 3 damage to a random enemy.

        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 && target!=null && target.entitiyID == triggerEffectMinion.entitiyID)
            {
                if (p.isServer)
                {
                    Minion choosen = p.getRandomMinionFromSide_SERVER(!triggerEffectMinion.own, true);
                    if (choosen != null) p.minionGetDamageOrHeal(choosen, 3);
                    return;
                }

                p.doDmgToRandomEnemyCLIENT2(3, true, triggerEffectMinion.own);
            }
        }
Пример #4
0
        public override void onCardIsDiscarded(Playfield p, CardDB.Card card, bool own)
        {

            int dmg = (own) ? p.getSpellDamageDamage(4) : p.getEnemySpellDamageDamage(4);

            if (p.isServer)
            {
                Minion choosen = p.getRandomMinionFromSide_SERVER(!own, true);
                if (choosen != null) p.minionGetDamageOrHeal(choosen, dmg);
                return;
            }

            p.doDmgToRandomEnemyCLIENT2(dmg, true, own);
        }
Пример #5
0
        //   Whenever you summon a Pirate, deal 2 damage to a random enemy.

        public override void onMinionIsSummoned(Playfield p, Minion triggerEffectMinion, Minion summonedMinion)
        {
            if (triggerEffectMinion.own == summonedMinion.own && summonedMinion.handcard.card.race == TAG_RACE.PIRATE)
            {
                if (p.isServer)
                {
                    Minion randomguy = p.getRandomMinionFromSide_SERVER(!triggerEffectMinion.own, true);
                    if (randomguy != null) p.minionGetDamageOrHeal(randomguy, 2, true);
                    return;
                }

                p.doDmgToRandomEnemyCLIENT2(2, true, triggerEffectMinion.own);
            }
        }
Пример #6
0
        //Battlecry: Deal 1 damage to a random enemy.


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

            //Random minion!


            if (p.isServer)
            {
                Minion choosen = p.getRandomMinionFromSide_SERVER(!own.own, true);
                if (choosen != null) p.minionGetDamageOrHeal(choosen, 1);
                return;
            }

            p.doDmgToRandomEnemyCLIENT2(1, true, own.own);
            
        }
Пример #7
0
 //todo secret
 //    geheimnis:/ wenn euer held schaden erleidet, wird dem feindlichen helden ebenso viel schaden zugefügt.
 public override void onSecretPlay(Playfield p, bool ownplay, int number)
 {
     int dmg = 5;
     p.doDmgToRandomEnemyCLIENT2(dmg, true, ownplay);
 }