mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Converted Mind's Desire to script.
This commit is contained in:
@@ -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 **************************
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user