mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Fixed Trickster Mage.
- etbReturnTgt now handles "you may return" and added "MayReturn" as a parameter to a group of cards.
This commit is contained in:
@@ -3,7 +3,7 @@ ManaCost:4 R
|
||||
Types:Creature Human Wizard
|
||||
Text:When Anarchist enters the battlefield, you may return target sorcery card from your graveyard to your hand.
|
||||
PT:2/2
|
||||
K:etbReturnTgt:1:Sorcery:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Sorcery:Hand
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://resources.wizards.com/magic/cards/9ed/en-us/card84072.jpg
|
||||
End
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:2 W
|
||||
Types:Creature Human Wizard
|
||||
Text:When Auramancer enters the battlefield, you may return target enchantment card from your graveyard to your hand.
|
||||
PT:2/2
|
||||
K:etbReturnTgt:1:Enchantment:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Enchantment:Hand
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/auramancer.jpg
|
||||
End
|
||||
|
||||
@@ -4,7 +4,7 @@ Types:Creature Imp
|
||||
Text:When Cadaver Imp enters the battlefield, you may return target creature card from your graveyard to your hand.
|
||||
PT:1/1
|
||||
K:Flying
|
||||
K:etbReturnTgt:1:Creature:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Creature:Hand
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/cadaver_imp.jpg
|
||||
End
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:2 G
|
||||
Types:Creature Human
|
||||
Text:When Cartographer enters the battlefield, you may return target land card from your graveyard to your hand.
|
||||
PT:2/2
|
||||
K:etbReturnTgt:1:Land:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Land:Hand
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/cartographer.jpg
|
||||
End
|
||||
|
||||
@@ -4,7 +4,7 @@ Types:Artifact Creature Hound
|
||||
Text:When Corpse Cur enters the battlefield, you may return target creature card with infect from your graveyard to your hand.
|
||||
PT:2/2
|
||||
K:Infect
|
||||
K:etbReturnTgt:1:Creature.withInfect:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Creature.withInfect:Hand
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/corpse_cur.jpg
|
||||
End
|
||||
@@ -3,7 +3,7 @@ ManaCost:1 G G
|
||||
Types:Creature Human Shaman
|
||||
Text:When Eternal Witness enters the battlefield, you may return target card from your graveyard to your hand.
|
||||
PT:2/1
|
||||
K:etbReturnTgt:1:Card:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Card:Hand
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://resources.wizards.com/magic/cards/5dn/en-us/card51628.jpg
|
||||
End
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:3 B
|
||||
Types:Creature Zombie
|
||||
Text:When Gravedigger enters the battlefield, you may return target creature card from your graveyard to your hand.
|
||||
PT:2/2
|
||||
K:etbReturnTgt:1:Creature:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Creature:Hand
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://resources.wizards.com/magic/cards/9ed/en-us/card83114.jpg
|
||||
End
|
||||
|
||||
@@ -4,7 +4,7 @@ Types:Creature Wall
|
||||
Text:When Mnemonic Wall enters the battlefield, you may return target instant or sorcery card from your graveyard to your hand.
|
||||
PT:0/4
|
||||
K:Defender
|
||||
K:etbReturnTgt:1:Instant,Sorcery:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Instant,Sorcery:Hand
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/mnemonic_wall.jpg
|
||||
End
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:3 B
|
||||
Types:Creature Human Rogue
|
||||
Text:When Moriok Scavenger enters the battlefield, you may return target artifact creature card from your graveyard to your hand.
|
||||
PT:2/3
|
||||
K:etbReturnTgt:1:Artifact+Creature:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Artifact+Creature:Hand
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/moriok_scavenger.jpg
|
||||
End
|
||||
|
||||
@@ -3,8 +3,8 @@ ManaCost:4 UR UR
|
||||
Types:Creature Beast
|
||||
Text:When Nucklavee enters the battlefield, you may return target red sorcery card from your graveyard to your hand.\r\nWhen Nucklavee enters the battlefield, you may return target blue instant card from your graveyard to your hand.
|
||||
PT:4/4
|
||||
K:etbReturnTgt:1:Sorcery.Red:Hand
|
||||
K:etbReturnTgt:1:Instant.Blue:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Sorcery.Red:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Instant.Blue:Hand
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/nucklavee.jpg
|
||||
End
|
||||
|
||||
@@ -4,7 +4,7 @@ Types:Artifact Creature Gargoyle
|
||||
Text:When Sanctum Gargoyle enters the battlefield, you may return target artifact card from your graveyard to your hand.
|
||||
PT:2/3
|
||||
K:Flying
|
||||
K:etbReturnTgt:1:Artifact:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Artifact:Hand
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/sanctum_gargoyle.jpg
|
||||
End
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:4 U
|
||||
Types:Creature Human Wizard
|
||||
Text:When Scrivener enters the battlefield, you may return target instant card from your graveyard to your hand.
|
||||
PT:2/2
|
||||
K:etbReturnTgt:1:Instant:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Instant:Hand
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/scrivener.jpg
|
||||
End
|
||||
|
||||
@@ -4,7 +4,7 @@ Types:Legendary Artifact Creature Sphinx
|
||||
Text:When Sharuum the Hegemon enters the battlefield, you may return target artifact card from your graveyard to the battlefield.
|
||||
PT:5/5
|
||||
K:Flying
|
||||
K:etbReturnTgt:1:Artifact:Battlefield
|
||||
K:etbReturnTgt:1/MayReturn:Artifact:Battlefield
|
||||
SVar:Rarity:Mythic
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/sharuum_the_hegemon.jpg
|
||||
End
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:2 B
|
||||
Types:Creature Human Mercenary
|
||||
Text:When Strongarm Thug enters the battlefield, you may return target Mercenary card from your graveyard to your hand.
|
||||
PT:1/1
|
||||
K:etbReturnTgt:1:Mercenary:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Mercenary:Hand
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/strongarm_thug.jpg
|
||||
End
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:2 W
|
||||
Types:Creature Human
|
||||
Text:When Treasure Hunter enters the battlefield, you may return target artifact card from your graveyard to your hand.
|
||||
PT:2/2
|
||||
K:etbReturnTgt:1:Artifact:Hand
|
||||
K:etbReturnTgt:1/MayReturn:Artifact:Hand
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/treasure_hunter.jpg
|
||||
End
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name:Trickster Mage
|
||||
ManaCost:U
|
||||
Types:Human Spellshaper
|
||||
Types:Creature Human Spellshaper
|
||||
Text:no text
|
||||
PT:1/1
|
||||
K:abTapTgt U T Discard<1/Any>:Artifact,Creature,Land:Tap target artifact, creature, or land.
|
||||
|
||||
@@ -3926,6 +3926,7 @@ public class CardFactory implements NewConstants {
|
||||
card.removeIntrinsicKeyword(parse);
|
||||
String k[] = parse.split(":");
|
||||
final boolean returnUpTo[] = {false};
|
||||
final boolean mayReturn[] = {false};
|
||||
final int numCardsToReturn;
|
||||
|
||||
String np[] = k[1].split("/");
|
||||
@@ -3934,6 +3935,8 @@ public class CardFactory implements NewConstants {
|
||||
if (np.length > 1) {
|
||||
if (np[1].equals("UpTo")) {
|
||||
returnUpTo[0] = true;
|
||||
} else if (np[1].equals("MayReturn")) {
|
||||
mayReturn[0] = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3950,7 +3953,7 @@ public class CardFactory implements NewConstants {
|
||||
String desc = "";
|
||||
final String Drawback[] = {"none"};
|
||||
|
||||
if (k.length > 4) {
|
||||
if (k.length > 4) {
|
||||
|
||||
if (k[4].contains("Drawback$")){
|
||||
String kk[] = k[4].split("\\$");
|
||||
@@ -4029,7 +4032,12 @@ public class CardFactory implements NewConstants {
|
||||
|
||||
for (int i = 0; i < numCardsToReturn; i++) {
|
||||
if (grave.size() > 0) {
|
||||
Object o = AllZone.Display.getChoiceOptional("Select a card", choices.toArray());
|
||||
Object o;
|
||||
if (mayReturn[0] || returnUpTo[0]) {
|
||||
o = AllZone.Display.getChoiceOptional("Select a card", choices.toArray());
|
||||
} else {
|
||||
o = AllZone.Display.getChoice("Select a card", choices.toArray());
|
||||
}
|
||||
if (o == null) break;
|
||||
Card c = (Card) o;
|
||||
targets.add(c);
|
||||
|
||||
Reference in New Issue
Block a user