mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Added the keyword "You may look at this card.".
- Added Intet, the Dreamer.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -4408,6 +4408,7 @@ res/cardsfolder/i/insurrection.txt svneol=native#text/plain
|
||||
res/cardsfolder/i/intangible_virtue.txt -text
|
||||
res/cardsfolder/i/interdict.txt -text
|
||||
res/cardsfolder/i/intervene.txt svneol=native#text/plain
|
||||
res/cardsfolder/i/intet_the_dreamer.txt -text
|
||||
res/cardsfolder/i/intimidation.txt svneol=native#text/plain
|
||||
res/cardsfolder/i/intimidation_bolt.txt -text svneol=unset#text/plain
|
||||
res/cardsfolder/i/intimidator_initiate.txt svneol=native#text/plain
|
||||
|
||||
17
res/cardsfolder/i/intet_the_dreamer.txt
Normal file
17
res/cardsfolder/i/intet_the_dreamer.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
Name:Intet, the Dreamer
|
||||
ManaCost:3 U R G
|
||||
Types:Legendary Creature Dragon
|
||||
Text:no text
|
||||
PT:6/6
|
||||
K:Flying
|
||||
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | CombatDamage$ True | OptionalDecider$ You | Execute$ TrigExile | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may pay 2 U. If you do, exile the top card of your library face down. You may look at that card for as long as it remains exiled. You may play that card without paying its mana cost for as long as Intet remains on the battlefield.
|
||||
SVar:TrigExile:AB$ ChangeZone | Cost$ 2 U | Defined$ TopOfLibrary | Origin$ Library | Destination$ Exile | ExileFaceDown$ True | RememberChanged$ True | SubAbility$ DBPump
|
||||
SVar:DBPump:DB$ Pump | Defined$ Remembered | KW$ You may look at this card. | PumpZone$ Exile | SubAbility$ DBPump2 | Permanent$ True
|
||||
SVar:DBPump2:DB$ Pump | Defined$ Remembered | KW$ May be played without paying its mana cost | PumpZone$ Exile | UntilHostLeavesPlay$ True | SubAbility$ DBCleanup
|
||||
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/intet_the_dreamer.jpg
|
||||
SetInfo:COM|Rare|http://magiccards.info/scans/en/cmd/204.jpg
|
||||
SetInfo:PLC|Rare|http://magiccards.info/scans/en/pc/158.jpg
|
||||
Oracle:Flying\nWhenever Intet, the Dreamer deals combat damage to a player, you may pay {2}{U}. If you do, exile the top card of your library face down. You may look at that card for as long as it remains exiled. You may play that card without paying its mana cost for as long as Intet remains on the battlefield.
|
||||
End
|
||||
@@ -5,7 +5,7 @@ Text:no text
|
||||
K:Storm
|
||||
A:SP$ Shuffle | Cost$ 4 U U | SubAbility$ DBExile | SpellDescription$ Shuffle your library. Then exile the top card of your library. Until end of turn, you may play that card without paying its mana cost. (If it has X in its mana cost, X is 0.)
|
||||
SVar:DBExile:DB$ ChangeZone | Defined$ TopOfLibrary | Origin$ Library | Destination$ Exile | RememberChanged$ True | SubAbility$ DBPump
|
||||
SVar:DBPump:DB$ Pump | Defined$ Remembered | KW$ HIDDEN May be played without paying its mana cost | PumpZone$ Exile | SubAbility$ DBCleanup
|
||||
SVar:DBPump:DB$ Pump | Defined$ Remembered | KW$ May be played without paying its mana cost | PumpZone$ Exile | SubAbility$ DBCleanup
|
||||
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/minds_desire.jpg
|
||||
|
||||
@@ -590,7 +590,7 @@ public class CardPanel extends JPanel implements CardContainer {
|
||||
return;
|
||||
}
|
||||
|
||||
if (card.isFaceDown()) {
|
||||
if (card.isFaceDown() && !card.hasKeyword("You may look at this card.")) {
|
||||
this.titleText.setText("");
|
||||
this.showCastingCost = false;
|
||||
} else {
|
||||
|
||||
@@ -211,8 +211,9 @@ public class GameAction {
|
||||
|
||||
copied.setTimestamp(AllZone.getNextTimestamp());
|
||||
for (String s : copied.getKeyword()) {
|
||||
if (s.startsWith("May be played")) {
|
||||
if (s.startsWith("May be played") || s.startsWith("You may look at this card.")) {
|
||||
copied.removeAllExtrinsicKeyword(s);
|
||||
copied.removeHiddenExtrinsicKeyword(s);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1189,10 +1189,12 @@ public class AbilityFactoryPump {
|
||||
AllZone.getEndOfCombat().addUntil(untilEOT);
|
||||
} else if (this.params.containsKey("UntilYourNextUpkeep")) {
|
||||
AllZone.getUpkeep().addUntil(sa.getActivatingPlayer(), untilEOT);
|
||||
} else if (params.containsKey("UntilHostLeavesPlay")) {
|
||||
sa.getSourceCard().addLeavesPlayCommand(untilEOT);
|
||||
} else if (this.params.containsKey("UntilLoseControlOfHost")) {
|
||||
sa.getSourceCard().addLeavesPlayCommand(untilEOT);
|
||||
sa.getSourceCard().addChangeControllerCommand(untilEOT);
|
||||
} else {
|
||||
} else {
|
||||
AllZone.getEndOfTurn().addUntil(untilEOT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2443,6 +2443,9 @@ public class CardFactoryUtil {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (c.hasKeyword("You may look at this card.")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (c.isLand()
|
||||
&& (c.hasKeyword("May be played") || c.hasKeyword("May be played by your opponent") || c
|
||||
|
||||
@@ -247,8 +247,6 @@ public class ControlField {
|
||||
|
||||
final Iterable<Card> myIterable = YieldUtils.toIterable(c);
|
||||
final ArrayList<Card> choices = YieldUtils.toArrayList(myIterable);
|
||||
// System.out.println("immediately after: "+choices);
|
||||
// Iterator<Card> iter = myIterable.iterator();
|
||||
|
||||
final ArrayList<Card> choices2 = new ArrayList<Card>();
|
||||
|
||||
@@ -257,24 +255,23 @@ public class ControlField {
|
||||
} else {
|
||||
for (int i = 0; i < choices.size(); i++) {
|
||||
final Card crd = choices.get(i);
|
||||
// System.out.println(crd+": "+crd.isFaceDown());
|
||||
if (crd.isFaceDown()) {
|
||||
final Card faceDown = new Card();
|
||||
faceDown.setName("Face Down");
|
||||
choices2.add(faceDown);
|
||||
// System.out.println("Added: "+faceDown);
|
||||
if (!crd.hasKeyword("You may look at this card.")) {
|
||||
final Card faceDown = new Card();
|
||||
faceDown.setName("Face Down");
|
||||
choices2.add(faceDown);
|
||||
} else {
|
||||
final Card faceDown = AllZone.getCardFactory().copyCard(crd);
|
||||
faceDown.turnFaceUp();
|
||||
choices2.add(faceDown);
|
||||
}
|
||||
} else {
|
||||
choices2.add(crd);
|
||||
}
|
||||
}
|
||||
// System.out.println("Face down cards replaced: "+choices2);
|
||||
final Card choice = (Card) GuiUtils.chooseOneOrNone(this.title, choices2.toArray());
|
||||
if (choice != null) {
|
||||
this.doAction(choice);
|
||||
/*
|
||||
* Card choice = GuiUtils.getChoiceOptional(title, iter); if
|
||||
* (choice != null) doAction(choice);
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user