- 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

@@ -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;
}

View File

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