- Converted Tectonic Instability to script

This commit is contained in:
swordshine
2013-08-08 01:24:48 +00:00
parent 2966a22521
commit d9be047a5c
2 changed files with 2 additions and 23 deletions

View File

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

View File

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