- Added support for targeting to AF UntapAll.

- Added Early Harvest.
This commit is contained in:
Sloth
2011-10-30 06:20:09 +00:00
parent 45cd267741
commit 06829597eb
6 changed files with 60 additions and 24 deletions

1
.gitattributes vendored
View File

@@ -2273,6 +2273,7 @@ res/cardsfolder/d/dwarven_weaponsmith.txt svneol=native#text/plain
res/cardsfolder/d/dying_wail.txt svneol=native#text/plain
res/cardsfolder/e/eager_cadet.txt svneol=native#text/plain
res/cardsfolder/e/early_frost.txt svneol=native#text/plain
res/cardsfolder/e/early_harvest.txt -text
res/cardsfolder/e/earnest_fellowship.txt svneol=native#text/plain
res/cardsfolder/e/earsplitting_rats.txt svneol=native#text/plain
res/cardsfolder/e/earth_elemental.txt svneol=native#text/plain

View File

@@ -0,0 +1,14 @@
Name:Early Harvest
ManaCost:1 G G
Types:Instant
Text:no text
A:SP$ UntapAll | Cost$ 1 G G | ValidTgts$ Player | TgtPrompt$ Select target player | ValidCards$ Land.Basic | SpellDescription$ Target player untaps all basic lands he or she controls.
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/early_harvest.jpg
SetInfo:6ED|Rare|http://magiccards.info/scans/en/6e/222.jpg
SetInfo:MIR|Rare|http://magiccards.info/scans/en/mr/111.jpg
SetInfo:9ED|Rare|http://magiccards.info/scans/en/9e/235.jpg
SetInfo:7ED|Rare|http://magiccards.info/scans/en/7e/237.jpg
Oracle:Target player untaps all basic lands he or she controls.
End

View File

@@ -9,4 +9,6 @@ SVar:CounterCharge:DB$ PutCounter | ValidTgts$ Artifact.nonCreature | TgtPrompt$
SVar:REMAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/energy_chamber.jpg
SetInfo:5DN|Uncommon|http://magiccards.info/scans/en/5dn/117.jpg
Oracle:At the beginning of your upkeep, choose one - Put a +1/+1 counter on target artifact creature; or put a charge counter on target noncreature artifact.
End

View File

@@ -8,4 +8,6 @@ SVar:X:Count$Valid Creature.YouCtrl
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/weed_pruner_poplar.jpg
SetInfo:CHK|Rare|http://magiccards.info/scans/en/chk/258.jpg
Oracle:At the beginning of your upkeep, you may have target creature you control get +X/+X until end of turn, where X is the number of creatures you control. If you do, sacrifice that creature at the beginning of the next end step.
End

View File

@@ -11,4 +11,6 @@ SVar:X:Remembered$Amount
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/soratami_seer.jpg
SetInfo:CHK|Uncommon|http://magiccards.info/scans/en/chk/91.jpg
Oracle:Flying\n{4}, Return two lands you control to their owner's hand: Discard all the cards in your hand, then draw that many cards.
End

View File

@@ -1251,12 +1251,27 @@ public class AbilityFactory_PermanentState {
Card card = sa.getSourceCard();
String valid = "";
CardList list = null;
ArrayList<Player> tgtPlayers = null;
if (params.containsKey("ValidCards")) {
valid = params.get("ValidCards");
}
CardList list = AllZoneUtil.getCardsIn(Zone.Battlefield);
Target tgt = af.getAbTgt();
if (tgt != null) {
tgtPlayers = tgt.getTargetPlayers();
} else if (params.containsKey("Defined")) {
// use it
tgtPlayers = AbilityFactory.getDefinedPlayers(sa.getSourceCard(), params.get("Defined"), sa);
}
if (tgtPlayers == null || tgtPlayers.isEmpty()) {
list = AllZoneUtil.getCardsIn(Zone.Battlefield);
} else {
list = tgtPlayers.get(0).getCardsIn(Zone.Battlefield);
}
list = list.getValidCards(valid.split(","), card.getController(), card);
for (int i = 0; i < list.size(); i++) {