diff --git a/forge-game/src/main/java/forge/game/spellability/Spell.java b/forge-game/src/main/java/forge/game/spellability/Spell.java index f460236af6e..bc388055edb 100644 --- a/forge-game/src/main/java/forge/game/spellability/Spell.java +++ b/forge-game/src/main/java/forge/game/spellability/Spell.java @@ -23,6 +23,7 @@ import forge.card.CardStateName; import forge.game.Game; import forge.game.card.Card; import forge.game.card.CardCollection; +import forge.game.card.CardLists; import forge.game.card.CardUtil; import forge.game.cost.Cost; import forge.game.cost.CostPayment; @@ -111,6 +112,7 @@ public abstract class Spell extends SpellAbility implements java.io.Serializable } } + if (!(isInstant || activator.canCastSorcery() || flash || this.getRestrictions().isInstantSpeed() || activator.hasKeyword("You may cast nonland cards as though they had flash.") @@ -134,7 +136,11 @@ public abstract class Spell extends SpellAbility implements java.io.Serializable return false; } } - + // legendary sorcery + if (card.isSorcery() && card.getType().isLegendary() && + CardLists.getValidCards(activator.getCardsIn(ZoneType.Battlefield), "Creature.Legendary,Planeswalker.Legendary", card.getController(), card).isEmpty()) { + return false; + } return checkOtherRestrictions(); } // canPlay() diff --git a/forge-gui/res/cardsfolder/upcoming/urzas_ruinous_blast.txt b/forge-gui/res/cardsfolder/upcoming/urzas_ruinous_blast.txt new file mode 100644 index 00000000000..965039799fc --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/urzas_ruinous_blast.txt @@ -0,0 +1,6 @@ +Name:Urza's Ruinous Blast +ManaCost:4 W +Types:Legendary Sorcery +A:SP$ ChangeZoneAll | Cost$ 4 W | UseAllOriginZones$ True | Origin$ Battlefield | Destination$ Exile | ChangeType$ Permanent.nonLand+nonLegendary | IsCurse$ True | SpellDescription$ Exile all nonland permanents that aren't legendary. +SVar:Picture:http://www.wizards.com/global/images/magic/general/urzas_ruinous_blast.jpg +Oracle:(You may cast a legendary sorcery only if you control a legendary creature or planeswalker.)\nExile all nonland permanents that aren't legendary.