Пример #1
0
        //   Restore #4 Health to your hero and gain +2 Attack this turn.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            if (ownplay)
            {
                int heal = p.getSpellHeal(4, ownplay);
                p.minionGetDamageOrHeal(p.playerFirst.ownHero, -heal);
                p.minionGetTempBuff(p.playerFirst.ownHero, 2, 0);
            }
            else
            {
                int heal = p.getSpellHeal(4, ownplay);
                p.minionGetDamageOrHeal(p.playerSecond.ownHero, -heal);
                p.minionGetTempBuff(p.playerSecond.ownHero, 2, 0);
            }

        }
Пример #2
0
        //Vernichtet einen Diener. Stellt bei Eurem Helden #3 Leben wieder her.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.minionGetDestroyed(target);
            int heal = p.getSpellHeal(3, ownplay);

            p.minionGetDamageOrHeal(ownplay ? p.playerFirst.ownHero : p.playerSecond.ownHero, -heal);
        }
Пример #3
0
        //todo make it better :D
        //Fügt allen Feinden $2 Schaden zu. Stellt bei allen befreundeten Charakteren #2 Leben wieder her.
        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            int dmg = p.getSpellDamageDamage(2, ownplay);
            int heal = p.getSpellHeal(2, ownplay);
            if (ownplay)
            {
                p.minionGetDamageOrHeal(p.playerFirst.ownHero, -heal);
                p.minionGetDamageOrHeal(p.playerSecond.ownHero, dmg);
                foreach (Minion m in p.playerFirst.ownMinions)
                {
                    p.minionGetDamageOrHeal(m, -heal);
                }

                foreach (Minion m in p.playerSecond.ownMinions)
                {
                    p.minionGetDamageOrHeal(m, dmg);
                }
            }
            else 
            {
                p.minionGetDamageOrHeal(p.playerSecond.ownHero, -heal);
                p.minionGetDamageOrHeal(p.playerFirst.ownHero, dmg);
                foreach (Minion m in p.playerSecond.ownMinions)
                {
                    p.minionGetDamageOrHeal(m, -heal);
                }

                foreach (Minion m in p.playerFirst.ownMinions)
                {
                    p.minionGetDamageOrHeal(m, dmg);
                }
            }
        }
Пример #4
0
 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     int heal = p.getSpellHeal(3, ownplay);
     p.minionGetDamageOrHeal(target, -heal);
     if (target.Hp < target.maxHp)
     {
         int posi = (ownplay) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
         p.callKid(kid, posi, ownplay);
     }
 }
Пример #5
0
//    stellt #6 leben wieder her.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int heal = p.getSpellHeal(6, ownplay);
            p.minionGetDamageOrHeal(target, -heal);
		}
Пример #6
0
//    stellt bei allen dienern #4 leben wieder her.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int heal = p.getSpellHeal(4, ownplay);
            p.allMinionsGetDamage(-heal);
		}