- Converted the following cards to keyword and commented out the card object for these cards: Regress; Repulse; Temporal Fissure; Temporal Spring and Unsummon.

- Removed a duplicate filter from spBounceTgt.
- Added an AI check for Overwhelming Forces
This commit is contained in:
jendave
2011-08-06 05:38:10 +00:00
parent 190f8128bb
commit 9d40d7890a
2 changed files with 53 additions and 43 deletions

View File

@@ -1,3 +1,35 @@
Regress
2 U
Instant
Return target permanent to its owner's hand.
spBounceTgt:Permanent:Hand
Repulse
2 U
Instant
Return target creature to its owner's hand.
spBounceTgt:Creature:Hand
Draw a card.
Temporal Fissure
4 U
Sorcery
Return target permanent to its owner's hand. Storm (When you cast this spell, copy it for each spell cast before it this turn. You may choose new targets for the copies.)
spBounceTgt:Permanent:Hand
Storm
Temporal Spring
1 G U
Sorcery
Put target permanent on top of its owner's library.
spBounceTgt:Permanent:TopofLibrary
Unsummon
U
Instant
Return target creature to its owner's hand.
spBounceTgt:Creature:Hand
Boomerang Boomerang
U U U U
Instant Instant
@@ -5257,12 +5289,6 @@ Sorcery
Target player loses 2 life and you gain 2 life. Storm (When you cast this spell, copy it for each spell cast before it this turn. You may choose new targets for the copies.) Target player loses 2 life and you gain 2 life. Storm (When you cast this spell, copy it for each spell cast before it this turn. You may choose new targets for the copies.)
Storm Storm
Temporal Fissure
4 U
Sorcery
Return target permanent to its owner's hand. Storm (When you cast this spell, copy it for each spell cast before it this turn. You may choose new targets for the copies.)
Storm
Sprouting Vines Sprouting Vines
2 G 2 G
Instant Instant
@@ -13226,11 +13252,6 @@ Legendary Creature Human Monk
You may play two additional lands on each of your turns. You may play two additional lands on each of your turns.
1/2 1/2
Temporal Spring
1 G U
Sorcery
Put target permanent on top of its owner's library.
Eviscerator Eviscerator
3 B B 3 B B
Creature Horror Creature Horror
@@ -16230,11 +16251,6 @@ Creature Elemental
As Nyxathid comes into play, choose an opponent. Nyxathid gets -1/-1 for each card in the chosen player's hand. As Nyxathid comes into play, choose an opponent. Nyxathid gets -1/-1 for each card in the chosen player's hand.
7/7 7/7
Unsummon
U
Instant
Return target creature to its owner's hand.
Lorescale Coatl Lorescale Coatl
1 G U 1 G U
Creature Snake Creature Snake
@@ -23178,12 +23194,6 @@ Impulse
Instant Instant
Look at the top four cards of your library. Put one of them into your hand and the rest on the bottom of your library. Look at the top four cards of your library. Put one of them into your hand and the rest on the bottom of your library.
Repulse
2 U
Instant
Return target creature to its owner's hand.
Draw a card.
Echoing Truth Echoing Truth
1 U 1 U
Instant Instant
@@ -23808,11 +23818,6 @@ U U
Instant Instant
no text no text
Regress
2 U
Instant
Return target permanent to its owner's hand.
Opt Opt
U U
Instant Instant

View File

@@ -2192,14 +2192,6 @@ public class CardFactory implements NewConstants {
CardList results = new CardList(); CardList results = new CardList();
CardList choices = getTargets(); CardList choices = getTargets();
choices = choices.filter(new CardListFilter(){
public boolean addCard(Card c)
{
return CardFactoryUtil.canTarget(card, c);
}
});
if(choices.size() > 0) { if(choices.size() > 0) {
for(int i = 0; i < Tgts.length; i++) { for(int i = 0; i < Tgts.length; i++) {
if(Tgts[i].equals("Artifact")) { if(Tgts[i].equals("Artifact")) {
@@ -8661,6 +8653,7 @@ public class CardFactory implements NewConstants {
card.addSpellAbility(spell); card.addSpellAbility(spell);
}//*************** END ************ END ************************** }//*************** END ************ END **************************
/* Converted to keyword
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Temporal Fissure")) { else if(cardName.equals("Temporal Fissure")) {
final SpellAbility spell = new Spell(card) { final SpellAbility spell = new Spell(card) {
@@ -8738,6 +8731,7 @@ public class CardFactory implements NewConstants {
card.clearSpellAbility(); card.clearSpellAbility();
card.addSpellAbility(spell); card.addSpellAbility(spell);
}//*************** END ************ END ************************** }//*************** END ************ END **************************
*/
//*************** START *********** START ************************** //*************** START *********** START **************************
if(cardName.equals("Brain Freeze")) { if(cardName.equals("Brain Freeze")) {
final SpellAbility spell = new Spell(card) { final SpellAbility spell = new Spell(card) {
@@ -10450,6 +10444,17 @@ public class CardFactory implements NewConstants {
AllZone.GameAction.drawCard(card.getController()); AllZone.GameAction.drawCard(card.getController());
} }
}//resolve() }//resolve()
@Override
public boolean canPlayAI() {
CardList human = new CardList(AllZone.Human_Play.getCards());
human = human.getType("Creature");
human = human.getNotKeyword("Indestructible");
// the computer will at least destroy 1 creature
return !human.isEmpty();
}
};//SpellAbility };//SpellAbility
card.clearSpellAbility(); card.clearSpellAbility();
card.addSpellAbility(spell); card.addSpellAbility(spell);
@@ -10860,7 +10865,7 @@ public class CardFactory implements NewConstants {
card.addSpellAbility(spell); card.addSpellAbility(spell);
}//*************** END ************ END ************************** }//*************** END ************ END **************************
/* Converted to keyword
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Regress")) { else if(cardName.equals("Regress")) {
SpellAbility spell = new Spell(card) { SpellAbility spell = new Spell(card) {
@@ -10901,7 +10906,7 @@ public class CardFactory implements NewConstants {
card.clearSpellAbility(); card.clearSpellAbility();
card.addSpellAbility(spell); card.addSpellAbility(spell);
}//*************** END ************ END ************************** }//*************** END ************ END **************************
*/
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Echoing Truth")) { else if(cardName.equals("Echoing Truth")) {
@@ -10993,7 +10998,7 @@ public class CardFactory implements NewConstants {
card.addSpellAbility(spell); card.addSpellAbility(spell);
}//*************** END ************ END ************************** }//*************** END ************ END **************************
/* Converted to keyword
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Repulse")) { else if(cardName.equals("Repulse")) {
final SpellAbility spell = new Spell(card) { final SpellAbility spell = new Spell(card) {
@@ -11134,7 +11139,7 @@ public class CardFactory implements NewConstants {
card.clearSpellAbility(); card.clearSpellAbility();
card.addSpellAbility(spell); card.addSpellAbility(spell);
}//*************** END ************ END ************************** }//*************** END ************ END **************************
*/
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Impulse")) { else if(cardName.equals("Impulse")) {
@@ -13359,6 +13364,7 @@ public class CardFactory implements NewConstants {
card.addSpellAbility(spell); card.addSpellAbility(spell);
}//*************** END ************ END ************************** }//*************** END ************ END **************************
/* Converted to keyword
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Temporal Spring")) { else if(cardName.equals("Temporal Spring")) {
final SpellAbility spell = new Spell(card) { final SpellAbility spell = new Spell(card) {
@@ -13426,7 +13432,6 @@ public class CardFactory implements NewConstants {
}//*************** END ************ END ************************** }//*************** END ************ END **************************
/* Converted to keyword
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Boomerang") || cardName.equals("Eye of Nowhere") || cardName.equals("Rescind") || cardName.equals("Surging AEther") || cardName.equals("Deny Reality")) { else if(cardName.equals("Boomerang") || cardName.equals("Eye of Nowhere") || cardName.equals("Rescind") || cardName.equals("Surging AEther") || cardName.equals("Deny Reality")) {
final SpellAbility spell = new Spell(card) { final SpellAbility spell = new Spell(card) {