mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- ChangeZoneAll with destination Library will now let you choose the order.
- Added Mirror of Fate.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -6247,6 +6247,7 @@ res/cardsfolder/m/mirrodins_core.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/m/mirror_entity.txt svneol=native#text/plain
|
res/cardsfolder/m/mirror_entity.txt svneol=native#text/plain
|
||||||
res/cardsfolder/m/mirror_gallery.txt svneol=native#text/plain
|
res/cardsfolder/m/mirror_gallery.txt svneol=native#text/plain
|
||||||
res/cardsfolder/m/mirror_mad_phantasm.txt -text
|
res/cardsfolder/m/mirror_mad_phantasm.txt -text
|
||||||
|
res/cardsfolder/m/mirror_of_fate.txt -text
|
||||||
res/cardsfolder/m/mirror_sheen.txt -text
|
res/cardsfolder/m/mirror_sheen.txt -text
|
||||||
res/cardsfolder/m/mirror_sigil_sergeant.txt svneol=native#text/plain
|
res/cardsfolder/m/mirror_sigil_sergeant.txt svneol=native#text/plain
|
||||||
res/cardsfolder/m/mirror_strike.txt -text
|
res/cardsfolder/m/mirror_strike.txt -text
|
||||||
|
|||||||
14
res/cardsfolder/m/mirror_of_fate.txt
Normal file
14
res/cardsfolder/m/mirror_of_fate.txt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Name:Mirror of Fate
|
||||||
|
ManaCost:5
|
||||||
|
Types:Artifact
|
||||||
|
Text:no text
|
||||||
|
A:AB$ ChooseCard | Cost$ T Sac<1/CARDNAME> | Amount$ 7 | Choices$ Card.YouOwn+faceUp | SubAbility$ DBExile | RememberChosen$ True | ChoiceZone$ Exile | SpellDescription$ Choose up to seven face-up exiled cards you own. Exile all the cards from your library, then put the chosen cards on top of your library.
|
||||||
|
SVar:DBExile:DB$ ChangeZoneAll | Origin$ Library | Destination$ Exile | SubAbility$ DBReturn
|
||||||
|
SVar:DBReturn:DB$ ChangeZoneAll | Origin$ Exile | Destination$ Library | ChangeType$ Card.IsRemembered
|
||||||
|
SVar:RemRandomDeck:True
|
||||||
|
SVar:RemAIDeck:True
|
||||||
|
SVar:Rarity:Rare
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/mirror_of_fate.jpg
|
||||||
|
SetInfo:M10|Rare|http://magiccards.info/scans/en/m10/215.jpg
|
||||||
|
Oracle:{T}, Sacrifice Mirror of Fate: Choose up to seven face-up exiled cards you own. Exile all the cards from your library, then put the chosen cards on top of your library.
|
||||||
|
End
|
||||||
@@ -15,6 +15,7 @@ import forge.card.spellability.SpellAbility;
|
|||||||
import forge.card.spellability.Target;
|
import forge.card.spellability.Target;
|
||||||
import forge.game.player.Player;
|
import forge.game.player.Player;
|
||||||
import forge.game.zone.ZoneType;
|
import forge.game.zone.ZoneType;
|
||||||
|
import forge.gui.GuiChoose;
|
||||||
|
|
||||||
public class ChangeZoneAllEffect extends SpellEffect {
|
public class ChangeZoneAllEffect extends SpellEffect {
|
||||||
|
|
||||||
@@ -62,10 +63,12 @@ public class ChangeZoneAllEffect extends SpellEffect {
|
|||||||
|
|
||||||
final String remember = sa.getParam("RememberChanged");
|
final String remember = sa.getParam("RememberChanged");
|
||||||
|
|
||||||
// I don't know if library position is necessary. It's here if it is,
|
final int libraryPos = sa.hasParam("LibraryPosition") ? Integer.parseInt(sa.getParam("LibraryPosition")) : 0;
|
||||||
// just in case
|
|
||||||
final int libraryPos = sa.hasParam("LibraryPosition") ? Integer.parseInt(sa.getParam("LibraryPosition"))
|
if (sa.getActivatingPlayer().isHuman() && destination.equals(ZoneType.Library)) {
|
||||||
: 0;
|
cards = GuiChoose.getOrderChoices("Choose order of cards to put into the library", "Put first", 0, cards, null, null);
|
||||||
|
}
|
||||||
|
|
||||||
for (final Card c : cards) {
|
for (final Card c : cards) {
|
||||||
if (destination.equals(ZoneType.Battlefield)) {
|
if (destination.equals(ZoneType.Battlefield)) {
|
||||||
// Auras without Candidates stay in their current location
|
// Auras without Candidates stay in their current location
|
||||||
|
|||||||
Reference in New Issue
Block a user