- 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
ManaCost:4 U U
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:Shroud
K:Indestructible
SVar:RemAIDeck:True
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$ 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
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.PlayerZone;
import forge.card.cost.Cost;
import forge.card.spellability.Ability;
import forge.card.spellability.AbilitySub;
import forge.card.spellability.Spell;
import forge.card.spellability.SpellAbility;
import forge.card.spellability.SpellPermanent;
import forge.card.spellability.Target;
import forge.gui.GuiUtils;
import forge.gui.input.Input;
@@ -249,7 +247,7 @@ public class CardFactorySorceries {
} // *************** END ************ END **************************
// *************** START *********** START **************************
else if (cardName.equals("Mind's Desire")) {
/*else if (cardName.equals("Mind's Desire")) {
final Spell playCreature = new Spell(card) {
private static final long serialVersionUID = 53838791023456795L;
@@ -437,7 +435,7 @@ public class CardFactorySorceries {
card.addSpellAbility(spell);
card.addSpellAbility(freeCast);
spell.setDescription("");
}
}*/
// *************** END ************ END **************************
// *************** 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;
}
@@ -2465,7 +2466,9 @@ public class CardFactoryUtil {
}
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)) {
return true;
}