예제 #1
0
파일: Sim_CS2_233.cs 프로젝트: shuyi3/AIPJ
 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     int damage = p.getSpellDamageDamage(p.playerFirst.ownWeaponAttack, ownplay);
     
     p.allCharsOfASideGetDamage(!ownplay, damage);
     //destroy own weapon
     p.lowerWeaponDurability(1000, true);
 }
예제 #2
0
파일: Sim_EX1_558.cs 프로젝트: shuyi3/AIPJ
//    kampfschrei:/ zerstört die waffe eures gegners. zieht ihrer haltbarkeit entsprechend karten.
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            if (own.own)
            {
                //this.owncarddraw += enemyWeaponDurability;
                for (int i = 0; i < p.playerSecond.ownWeaponDurability; i++)
                {
                    p.drawACard(p.getArandomCardFromDeck(true), true);
                }
                p.lowerWeaponDurability(1000, false);
            }
            else
            {
                for (int i = 0; i < p.playerSecond.ownWeaponDurability; i++)
                {
                    p.drawACard(p.getArandomCardFromDeck(false), false);
                }
                p.lowerWeaponDurability(1000, true);
            }
		}
예제 #3
0
파일: Sim_GvG_047.cs 프로젝트: shuyi3/AIPJ
        //   Destroy a random enemy minion. Combo: And your opponent's weapon.


        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            List<Minion> temp = (ownplay)? p.playerSecond.ownMinions : p.playerFirst.ownMinions;
            if (temp.Count >= 1)
            {
                // Drew: Null check for searchRandomMinion.
                var found = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP);
                if (found != null)
                {
                    p.minionGetDestroyed(found);
                }
            }
            if (p.playerFirst.cardsPlayedThisTurn >= 1) p.lowerWeaponDurability(1000, !ownplay);
        }
예제 #4
0
파일: Sim_NEW1_025.cs 프로젝트: shuyi3/AIPJ
//    kampfschrei:/ zieht 1 haltbarkeit von der waffe eures gegners ab.
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            p.lowerWeaponDurability(1, !own.own);
		}