mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- DOM: Added "Legendary Sorcery" Urza's Ruinous Blast
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user