mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
*Added PumpZone parameter to AF_PumpAll.
*Added Past in Flames
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -5915,6 +5915,7 @@ res/cardsfolder/p/pardic_lancer.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/p/pardic_swordsmith.txt svneol=native#text/plain
|
res/cardsfolder/p/pardic_swordsmith.txt svneol=native#text/plain
|
||||||
res/cardsfolder/p/part_the_veil.txt svneol=native#text/plain
|
res/cardsfolder/p/part_the_veil.txt svneol=native#text/plain
|
||||||
res/cardsfolder/p/part_water.txt svneol=native#text/plain
|
res/cardsfolder/p/part_water.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/p/past_in_flames.txt -text
|
||||||
res/cardsfolder/p/patagia_golem.txt svneol=native#text/plain
|
res/cardsfolder/p/patagia_golem.txt svneol=native#text/plain
|
||||||
res/cardsfolder/p/patagia_viper.txt -text
|
res/cardsfolder/p/patagia_viper.txt -text
|
||||||
res/cardsfolder/p/patchwork_gnomes.txt -text
|
res/cardsfolder/p/patchwork_gnomes.txt -text
|
||||||
|
|||||||
11
res/cardsfolder/p/past_in_flames.txt
Normal file
11
res/cardsfolder/p/past_in_flames.txt
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Name:Past in Flames
|
||||||
|
ManaCost:3 R
|
||||||
|
Types:Sorcery
|
||||||
|
Text:no text
|
||||||
|
A:SP$PumpAll | Cost$ 3 R | ValidCards$ Instant.YouCtrl,Sorcery.YouCtrl | KW$ Flashback | PumpZone$ Graveyard | SpellDescription$ Each instant and sorcery card in your graveyard gains flashback until end of turn. The flashback cost is equal to its mana cost.
|
||||||
|
A:SP$PumpAll | Cost$ 4 R | Flashback$ True | ValidCards$ Instant.YouCtrl,Sorcery.YouCtrl | KW$ Flashback | PumpZone$ Graveyard | SpellDescription$ (You may cast this card from your graveyard for its flashback cost. Then exile it.)
|
||||||
|
SVar:Rarity:Mythic
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/past_in_flames.jpg
|
||||||
|
SetInfo:ISD|Mythic|http://magiccards.info/scans/en/isd/155.jpg
|
||||||
|
Oracle:Each instant and sorcery card in your graveyard gains flashback until end of turn. The flashback cost is equal to its mana cost.\nFlashback {4}{R} (You may cast this card from your graveyard for its flashback cost. Then exile it.)
|
||||||
|
End
|
||||||
@@ -3,7 +3,7 @@ ManaCost:1 R
|
|||||||
Types:Sorcery
|
Types:Sorcery
|
||||||
Text:no text
|
Text:no text
|
||||||
A:SP$ Pump | Cost$ 1 R | ValidTgts$ Sorcery.YouCtrl | TgtZone$ Graveyard | TgtPrompt$ Select target instant or sorcery card | KW$ Flashback | PumpZone$ Graveyard | SpellDescription$ Target sorcery card in your graveyard gains flashback until end of turn. The flashback cost is equal to its mana cost. (Mana cost includes color.)
|
A:SP$ Pump | Cost$ 1 R | ValidTgts$ Sorcery.YouCtrl | TgtZone$ Graveyard | TgtPrompt$ Select target instant or sorcery card | KW$ Flashback | PumpZone$ Graveyard | SpellDescription$ Target sorcery card in your graveyard gains flashback until end of turn. The flashback cost is equal to its mana cost. (Mana cost includes color.)
|
||||||
A:SP$ Pump | Cost$ 3 R | Flashback$ True | ValidTgts$ Sorcery.YouCtrl | TgtZone$ Graveyard | TgtPrompt$ Select target instant or sorcery card | KW$ Flashback | PumpZone$ Graveyard | CostDesc$ Flashback - 3 R | SpellDescription$ (You may cast this card from your graveyard for its flashback cost. Then exile it.)
|
A:SP$ Pump | Cost$ 3 R | Flashback$ True | ValidTgts$ Sorcery.YouCtrl | TgtZone$ Graveyard | TgtPrompt$ Select target instant or sorcery card | KW$ Flashback | PumpZone$ Graveyard | PreCostDesc$ Flashback - | SpellDescription$ (You may cast this card from your graveyard for its flashback cost. Then exile it.)
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/recoup.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/recoup.jpg
|
||||||
SetInfo:ODY|Uncommon|http://magiccards.info/scans/en/od/216.jpg
|
SetInfo:ODY|Uncommon|http://magiccards.info/scans/en/od/216.jpg
|
||||||
|
|||||||
@@ -1156,6 +1156,7 @@ public class AbilityFactoryPump {
|
|||||||
final AbilityFactory af = sa.getAbilityFactory();
|
final AbilityFactory af = sa.getAbilityFactory();
|
||||||
CardList list;
|
CardList list;
|
||||||
ArrayList<Player> tgtPlayers = null;
|
ArrayList<Player> tgtPlayers = null;
|
||||||
|
final ArrayList<Zone> affectedZones = new ArrayList<Zone>();
|
||||||
|
|
||||||
final Target tgt = af.getAbTgt();
|
final Target tgt = af.getAbTgt();
|
||||||
if (tgt != null) {
|
if (tgt != null) {
|
||||||
@@ -1164,12 +1165,29 @@ public class AbilityFactoryPump {
|
|||||||
// use it
|
// use it
|
||||||
tgtPlayers = AbilityFactory.getDefinedPlayers(sa.getSourceCard(), this.params.get("Defined"), sa);
|
tgtPlayers = AbilityFactory.getDefinedPlayers(sa.getSourceCard(), this.params.get("Defined"), sa);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((tgtPlayers == null) || tgtPlayers.isEmpty()) {
|
if(this.params.containsKey("PumpZone")) {
|
||||||
list = AllZoneUtil.getCardsIn(Zone.Battlefield);
|
for(String zone : this.params.get("PumpZone").split(",")) {
|
||||||
} else {
|
affectedZones.add(Zone.valueOf(zone));
|
||||||
list = tgtPlayers.get(0).getCardsIn(Zone.Battlefield);
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
affectedZones.add(Zone.Battlefield);
|
||||||
|
}
|
||||||
|
|
||||||
|
list = new CardList();
|
||||||
|
if ((tgtPlayers == null) || tgtPlayers.isEmpty()) {
|
||||||
|
for(Zone zone : affectedZones) {
|
||||||
|
list.addAll(AllZoneUtil.getCardsIn(zone));
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
for(Zone zone : affectedZones) {
|
||||||
|
list.addAll(tgtPlayers.get(0).getCardsIn(zone));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String valid = "";
|
String valid = "";
|
||||||
if (this.params.containsKey("ValidCards")) {
|
if (this.params.containsKey("ValidCards")) {
|
||||||
@@ -1184,8 +1202,15 @@ public class AbilityFactoryPump {
|
|||||||
for (final Card c : list) {
|
for (final Card c : list) {
|
||||||
final Card tgtC = c;
|
final Card tgtC = c;
|
||||||
|
|
||||||
// only pump things in play
|
// only pump things in the affected zones.
|
||||||
if (!AllZoneUtil.isCardInPlay(tgtC)) {
|
boolean found = false;
|
||||||
|
for(Zone z : affectedZones) {
|
||||||
|
if(c.isInZone(z)) {
|
||||||
|
found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!found) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user