- Converted Mind's Desire to script.

This commit is contained in:
Sloth
2012-02-04 19:09:23 +00:00
parent 0d33486130
commit 0fe2cf1dad
4 changed files with 13 additions and 11 deletions

View File

@@ -1,11 +1,12 @@
Name:Mind's Desire Name:Mind's Desire
ManaCost:4 U U ManaCost:4 U U
Types:Sorcery Types:Sorcery
Text: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.) Text:no text
K:Storm K:Storm
K:Shroud 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.)
K:Indestructible SVar:DBExile:DB$ ChangeZone | Defined$ TopOfLibrary | Origin$ Library | Destination$ Exile | RememberChanged$ True | SubAbility$ DBPump
SVar:RemAIDeck:True 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:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/minds_desire.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/minds_desire.jpg
SetInfo:SCG|Rare|http://magiccards.info/scans/en/sc/41.jpg SetInfo:SCG|Rare|http://magiccards.info/scans/en/sc/41.jpg

View File

@@ -43,11 +43,9 @@ import forge.Player;
import forge.PlayerUtil; import forge.PlayerUtil;
import forge.PlayerZone; import forge.PlayerZone;
import forge.card.cost.Cost; import forge.card.cost.Cost;
import forge.card.spellability.Ability;
import forge.card.spellability.AbilitySub; import forge.card.spellability.AbilitySub;
import forge.card.spellability.Spell; import forge.card.spellability.Spell;
import forge.card.spellability.SpellAbility; import forge.card.spellability.SpellAbility;
import forge.card.spellability.SpellPermanent;
import forge.card.spellability.Target; import forge.card.spellability.Target;
import forge.gui.GuiUtils; import forge.gui.GuiUtils;
import forge.gui.input.Input; import forge.gui.input.Input;
@@ -249,7 +247,7 @@ public class CardFactorySorceries {
} // *************** END ************ END ************************** } // *************** END ************ END **************************
// *************** START *********** START ************************** // *************** START *********** START **************************
else if (cardName.equals("Mind's Desire")) { /*else if (cardName.equals("Mind's Desire")) {
final Spell playCreature = new Spell(card) { final Spell playCreature = new Spell(card) {
private static final long serialVersionUID = 53838791023456795L; private static final long serialVersionUID = 53838791023456795L;
@@ -437,7 +435,7 @@ public class CardFactorySorceries {
card.addSpellAbility(spell); card.addSpellAbility(spell);
card.addSpellAbility(freeCast); card.addSpellAbility(freeCast);
spell.setDescription(""); spell.setDescription("");
} }*/
// *************** END ************ END ************************** // *************** END ************ END **************************
// *************** START *********** START ************************** // *************** START *********** START **************************

View File

@@ -2454,7 +2454,8 @@ public class CardFactoryUtil {
} }
} }
if (c.isLand() && c.hasKeyword("May be played")) { if (c.isLand() && (c.hasKeyword("May be played")
|| c.hasKeyword("May be played without paying its mana cost"))) {
return true; return true;
} }
@@ -2465,7 +2466,9 @@ public class CardFactoryUtil {
} }
if (sa.isSpell() if (sa.isSpell()
&& (c.hasKeyword("May be played") || (c.hasStartOfKeyword("Flashback") && zone && (c.hasStartOfKeyword("May be played")
|| c.hasKeyword("May be played without paying its mana cost")
|| (c.hasStartOfKeyword("Flashback") && zone
.is(Zone.Graveyard))) && restrictZone.equals(Zone.Hand)) { .is(Zone.Graveyard))) && restrictZone.equals(Zone.Hand)) {
return true; return true;
} }

View File

@@ -228,7 +228,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
return false; return false;
} }
if (!this.isAnyPlayer() && !activator.equals(c.getController()) if (!this.isAnyPlayer() && !activator.equals(c.getController())
&& !c.hasKeyword("May be played by your Opponent")) { && !c.hasKeyword("May be played by your Opponent")) {
return false; return false;
} }