- DOM: Added "Legendary Sorcery" Urza's Ruinous Blast

This commit is contained in:
swordshine
2018-03-10 22:29:26 +08:00
parent 795c071e64
commit c249ed5f9f
2 changed files with 13 additions and 1 deletions

View File

@@ -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()

View File

@@ -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.