mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Converted Tectonic Instability to script
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
Name:Tectonic Instability
|
Name:Tectonic Instability
|
||||||
ManaCost:2 R
|
ManaCost:2 R
|
||||||
Types:Enchantment
|
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:RemRandomDeck:True
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/tectonic_instability.jpg
|
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.
|
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);
|
c.executeTrigger(ZCTrigger.ENTERFIELD);
|
||||||
|
|
||||||
if (c.isLand()) {
|
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())
|
for( Player opp : c.getOwner().getOpponents())
|
||||||
|
|||||||
Reference in New Issue
Block a user