From af89884ac15391e7ce3e5afc0ce9284326bb3c12 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 23 Jan 2019 21:41:19 -0500 Subject: [PATCH] a few text fixes --- Mage.Sets/src/mage/cards/g/GatewayPlaza.java | 10 +++---- Mage.Sets/src/mage/cards/r/RuptureSpire.java | 16 +++++----- Mage.Sets/src/mage/cards/t/TowerDefense.java | 30 ++++++++----------- .../src/mage/cards/t/TransguildPromenade.java | 12 +++++--- 4 files changed, 32 insertions(+), 36 deletions(-) diff --git a/Mage.Sets/src/mage/cards/g/GatewayPlaza.java b/Mage.Sets/src/mage/cards/g/GatewayPlaza.java index 882a7de195..3d0ac49471 100644 --- a/Mage.Sets/src/mage/cards/g/GatewayPlaza.java +++ b/Mage.Sets/src/mage/cards/g/GatewayPlaza.java @@ -1,18 +1,18 @@ package mage.cards.g; -import java.util.UUID; import mage.abilities.common.EntersBattlefieldTappedAbility; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.costs.mana.GenericManaCost; import mage.abilities.effects.common.SacrificeSourceUnlessPaysEffect; import mage.abilities.mana.AnyColorManaAbility; -import mage.constants.SubType; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; /** - * * @author TheElk801 */ public final class GatewayPlaza extends CardImpl { @@ -27,9 +27,7 @@ public final class GatewayPlaza extends CardImpl { // When Gateway Plaza enters the battlefield, sacrifice it unless you pay {1}. this.addAbility(new EntersBattlefieldTriggeredAbility( - new SacrificeSourceUnlessPaysEffect( - new GenericManaCost(1) - ), false + new SacrificeSourceUnlessPaysEffect(new GenericManaCost(1)).setText("sacrifice it unless you pay {1}") )); // {T}: Add one mana of any color. diff --git a/Mage.Sets/src/mage/cards/r/RuptureSpire.java b/Mage.Sets/src/mage/cards/r/RuptureSpire.java index 2793a533f8..08dda4903d 100644 --- a/Mage.Sets/src/mage/cards/r/RuptureSpire.java +++ b/Mage.Sets/src/mage/cards/r/RuptureSpire.java @@ -1,8 +1,5 @@ - - package mage.cards.r; -import java.util.UUID; import mage.abilities.common.EntersBattlefieldTappedAbility; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.costs.mana.ManaCostsImpl; @@ -12,21 +9,24 @@ import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; +import java.util.UUID; + /** - * * @author Loki, North */ public final class RuptureSpire extends CardImpl { - public RuptureSpire (UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.LAND},null); + public RuptureSpire(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, null); this.addAbility(new EntersBattlefieldTappedAbility()); - this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{1}")), false)); + this.addAbility(new EntersBattlefieldTriggeredAbility( + new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{1}")).setText("sacrifice it unless you pay {1}") + )); this.addAbility(new AnyColorManaAbility()); } - public RuptureSpire (final RuptureSpire card) { + public RuptureSpire(final RuptureSpire card) { super(card); } diff --git a/Mage.Sets/src/mage/cards/t/TowerDefense.java b/Mage.Sets/src/mage/cards/t/TowerDefense.java index 659efcdee4..9cf9e70bd7 100644 --- a/Mage.Sets/src/mage/cards/t/TowerDefense.java +++ b/Mage.Sets/src/mage/cards/t/TowerDefense.java @@ -1,39 +1,33 @@ - package mage.cards.t; -import java.util.UUID; -import mage.abilities.effects.common.continuous.BoostAllEffect; -import mage.abilities.effects.common.continuous.GainAbilityAllEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; import mage.abilities.keyword.ReachAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Duration; -import mage.constants.TargetController; -import mage.filter.common.FilterCreaturePermanent; -import mage.filter.predicate.permanent.ControllerPredicate; + +import java.util.UUID; /** - * * @author Plopman */ public final class TowerDefense extends CardImpl { - - private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Creatures you control"); - static { - filter.add(new ControllerPredicate(TargetController.YOU)); - } public TowerDefense(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{G}"); - + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}"); // Creatures you control get +0/+5 and gain reach until end of turn. - this.getSpellAbility().addEffect(new BoostAllEffect(0, 5, Duration.EndOfTurn, filter , false)); - this.getSpellAbility().addEffect(new GainAbilityAllEffect(ReachAbility.getInstance(), Duration.EndOfTurn, filter)); + this.getSpellAbility().addEffect(new BoostControlledEffect( + 0, 5, Duration.EndOfTurn + ).setText("creatures you control get +0/+5")); + this.getSpellAbility().addEffect(new GainAbilityControlledEffect( + ReachAbility.getInstance(), Duration.EndOfTurn + ).setText("and gain reach until end of turn")); } - public TowerDefense(final TowerDefense card) { + private TowerDefense(final TowerDefense card) { super(card); } diff --git a/Mage.Sets/src/mage/cards/t/TransguildPromenade.java b/Mage.Sets/src/mage/cards/t/TransguildPromenade.java index ff55723a9a..856480fe33 100644 --- a/Mage.Sets/src/mage/cards/t/TransguildPromenade.java +++ b/Mage.Sets/src/mage/cards/t/TransguildPromenade.java @@ -1,7 +1,5 @@ - package mage.cards.t; -import java.util.UUID; import mage.abilities.common.EntersBattlefieldTappedAbility; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.costs.mana.GenericManaCost; @@ -11,18 +9,24 @@ import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; +import java.util.UUID; + /** * @author LevelX2 */ public final class TransguildPromenade extends CardImpl { public TransguildPromenade(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.LAND},""); + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); // Transguild Promenade enters the battlefield tapped. this.addAbility(new EntersBattlefieldTappedAbility()); + // When Transguild Promenade enters the battlefield, sacrifice it unless you pay {1}. - this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new GenericManaCost(1)))); + this.addAbility(new EntersBattlefieldTriggeredAbility( + new SacrificeSourceUnlessPaysEffect(new GenericManaCost(1)).setText("sacrifice it unless you pay {1}") + )); + // {T}: Add one mana of any color. this.addAbility(new AnyColorManaAbility()); }