mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Converted Tectonic Instability to script
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
Name:Tectonic Instability
|
||||
ManaCost:2 R
|
||||
Types:Enchantment
|
||||
Text:Whenever a land enters the battlefield, tap all lands its controller controls.
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Land | TriggerZones$ Battlefield | Execute$ TrigTap | TriggerDescription$ Whenever a land enters the battlefield, tap all lands its controller controls.
|
||||
SVar:TrigTap:AB$ TapAll | Cost$ 0 | ValidCards$ TriggeredCard.sharesControllerWith+Land
|
||||
SVar:RemRandomDeck:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/tectonic_instability.jpg
|
||||
Oracle:Whenever a land enters the battlefield, tap all lands its controller controls.
|
||||
@@ -90,28 +90,6 @@ public class PlayerZoneBattlefield extends PlayerZone {
|
||||
c.executeTrigger(ZCTrigger.ENTERFIELD);
|
||||
|
||||
if (c.isLand()) {
|
||||
// Tectonic Instability
|
||||
final List<Card> tis =
|
||||
CardLists.filter(game.getCardsIn(ZoneType.Battlefield), CardPredicates.nameEquals("Tectonic Instability"));
|
||||
final Card tisLand = c;
|
||||
for (final Card ti : tis) {
|
||||
final Card source = ti;
|
||||
final SpellAbility ability = new Ability(source, ManaCost.NO_COST) {
|
||||
@Override
|
||||
public void resolve() {
|
||||
List<Card> lands = CardLists.filter(tisLand.getController().getCardsIn(ZoneType.Battlefield), Presets.LANDS);
|
||||
for (final Card land : lands) {
|
||||
land.tap();
|
||||
}
|
||||
}
|
||||
};
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
sb.append(source).append(" - tap all lands ");
|
||||
sb.append(tisLand.getController()).append(" controls.");
|
||||
ability.setStackDescription(sb.toString());
|
||||
game.getStack().addSimultaneousStackEntry(ability);
|
||||
|
||||
}
|
||||
|
||||
|
||||
for( Player opp : c.getOwner().getOpponents())
|
||||
|
||||
Reference in New Issue
Block a user