mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- 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:
@@ -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
|
||||
@@ -583,7 +583,7 @@ public class AbilityFactory_ChangeZone {
|
||||
|
||||
CardList list = AllZoneUtil.getCardsInZone(origin);
|
||||
list = list.getValidCards(tgt.getValidTgts(), AllZone.ComputerPlayer, source);
|
||||
|
||||
|
||||
if (list.size() == 0)
|
||||
return false;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user