- Bounce spells that use AF Changezone will target only human permanents, since the AI is not capable of emergency rescue. Sol beat me to the exile case (I even added the same filter to CardList).

This commit is contained in:
jendave
2011-08-06 13:49:41 +00:00
parent 0912d0f02e
commit 59d6d735cd
3 changed files with 3 additions and 30 deletions

View File

@@ -3,7 +3,7 @@ ManaCost:1 R
Types:Instant
Text:no text
A:SP$DealDamage | Cost$ 1 R | Tgt$ TgtCP | NumDmg$ 3 | SubAbility$ SVar=DB | SpellDescription$ CARDNAME deals 3 damage to target creature or player. A creature dealt damage this way can't be regenerated this turn.
SVar:DB:DB$Pump | KW$ HIDDEN CARDNAME can't be regenerated. | Defined$Targeted
SVar:DB:DB$Pump | KW$ HIDDEN CARDNAME can't be regenerated. | Defined$ Targeted
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/incinerate.jpg
End

View File

@@ -605,7 +605,7 @@ public class AbilityFactory_ChangeZone {
}
if (destination.equals("Exile"))
if (destination.equals("Exile") || origin.equals("Battlefield"))
list = list.getController(AllZone.HumanPlayer);
if (list.size() == 0)

View File

@@ -149,7 +149,6 @@ public class CardList implements Iterable<Card> {
return c;
}
//cardType is like "Land" or "Goblin", returns a new CardList that is a subset of current CardList
public CardList getController(final Player player) {
return this.filter(new CardListFilter() {
public boolean addCard(Card c) {
@@ -314,32 +313,6 @@ public class CardList implements Iterable<Card> {
});
}
/*
public CardList getValidCards(final String Restrictions[], final Card source) {
return this.filter(new CardListFilter() {
public boolean addCard(Card c) {
return c.isValidCard(Restrictions, source);
}
});
}
public CardList getValidCards(final String Restrictions[], final Player Controller) {
return this.filter(new CardListFilter() {
public boolean addCard(Card c) {
return c.isValidCard(Restrictions, Controller);
}
});
}
public CardList getValidCards(final String Restrictions[]) {
return this.filter(new CardListFilter() {
public boolean addCard(Card c) {
return c.isValidCard(Restrictions);
}
});
}//getValidCards
*/
public CardList getEquipMagnets() {
return this.filter(new CardListFilter() {
public boolean addCard(Card c) {