diff --git a/Mage.Sets/src/mage/cards/c/CouncilGuardian.java b/Mage.Sets/src/mage/cards/c/CouncilGuardian.java
index 8d7a384f0f0..21e9fcf94b2 100644
--- a/Mage.Sets/src/mage/cards/c/CouncilGuardian.java
+++ b/Mage.Sets/src/mage/cards/c/CouncilGuardian.java
@@ -37,8 +37,9 @@ public final class CouncilGuardian extends CardImpl {
// Will of the council - When Council Guardian enters the battlefield, starting with you, each player votes for blue, black, red, or green. Council Guardian gains protection from each color with the most votes or tied for most votes.
this.addAbility(new EntersBattlefieldTriggeredAbility(
- new CouncilsGuardianEffect(), false, "Will of the council — "
- ));
+ new CouncilsGuardianEffect(), false)
+ .withFlavorWord("Will of the council")
+ );
}
private CouncilGuardian(final CouncilGuardian card) {
diff --git a/Mage.Sets/src/mage/cards/c/CustodiSquire.java b/Mage.Sets/src/mage/cards/c/CustodiSquire.java
index f167b4ac095..6783d217b5f 100644
--- a/Mage.Sets/src/mage/cards/c/CustodiSquire.java
+++ b/Mage.Sets/src/mage/cards/c/CustodiSquire.java
@@ -37,10 +37,12 @@ public final class CustodiSquire extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
+
// Will of the council - When Custodi Squire enters the battlefield, starting with you, each player votes for an artifact, creature, or enchantment card in your graveyard. Return each card with the most votes or tied for most votes to your hand.
this.addAbility(new EntersBattlefieldTriggeredAbility(
- new CustodiSquireVoteEffect(), false, true
- ));
+ new CustodiSquireVoteEffect(), false)
+ .withFlavorWord("Will of the council")
+ );
}
private CustodiSquire(final CustodiSquire card) {
@@ -57,8 +59,7 @@ class CustodiSquireVoteEffect extends OneShotEffect {
CustodiSquireVoteEffect() {
super(Outcome.Benefit);
- this.staticText = "Will of the council — When {this} enters the battlefield, " +
- "starting with you, each player votes for an artifact, creature, or enchantment card in your graveyard. " +
+ this.staticText = "starting with you, each player votes for an artifact, creature, or enchantment card in your graveyard. " +
"Return each card with the most votes or tied for most votes to your hand";
}
diff --git a/Mage.Sets/src/mage/cards/d/Duplicant.java b/Mage.Sets/src/mage/cards/d/Duplicant.java
index 41396d1a469..594d83881b5 100644
--- a/Mage.Sets/src/mage/cards/d/Duplicant.java
+++ b/Mage.Sets/src/mage/cards/d/Duplicant.java
@@ -41,8 +41,9 @@ public final class Duplicant extends CardImpl {
this.toughness = new MageInt(4);
// Imprint - When Duplicant enters the battlefield, you may exile target nontoken creature.
- Ability ability = new EntersBattlefieldTriggeredAbility(new DuplicantExileTargetEffect(), true, "Imprint — ");
+ Ability ability = new EntersBattlefieldTriggeredAbility(new DuplicantExileTargetEffect(), true);
ability.addTarget(new TargetCreaturePermanent(filter));
+ ability.withFlavorWord("Imprint");
this.addAbility(ability);
// As long as the exiled card is a creature card, Duplicant has that card's power, toughness, and creature types. It's still a Shapeshifter.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DuplicantContinuousEffect()));
diff --git a/Mage.Sets/src/mage/cards/g/GuildThief.java b/Mage.Sets/src/mage/cards/g/GuildThief.java
index a3c073ec487..c9217e74505 100644
--- a/Mage.Sets/src/mage/cards/g/GuildThief.java
+++ b/Mage.Sets/src/mage/cards/g/GuildThief.java
@@ -1,9 +1,12 @@
package mage.cards.g;
import mage.MageInt;
+import mage.abilities.Ability;
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
+import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
+import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.effects.common.combat.CantBeBlockedSourceEffect;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.cards.CardImpl;
@@ -12,6 +15,7 @@ import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.counters.CounterType;
+import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
@@ -37,6 +41,13 @@ public final class GuildThief extends CardImpl {
this.addAbility(new SimpleActivatedAbility(
new CantBeBlockedSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{3}{U}")
).withFlavorWord("Cunning Action"));
+
+ // TODO: EXAMPLE DELETE
+ // When Fathom Fleet Cutthroat enters the battlefield, destroy target creature an opponent controls that was dealt damage this turn.
+ Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
+ ability.addTarget(new TargetCreaturePermanent());
+ ability.withFlavorWord("Tail Spikes");
+ this.addAbility(ability);
}
private GuildThief(final GuildThief card) {
diff --git a/Mage.Sets/src/mage/cards/h/HeartlashCinder.java b/Mage.Sets/src/mage/cards/h/HeartlashCinder.java
index 33b970ea890..e83705684ed 100644
--- a/Mage.Sets/src/mage/cards/h/HeartlashCinder.java
+++ b/Mage.Sets/src/mage/cards/h/HeartlashCinder.java
@@ -41,8 +41,11 @@ public final class HeartlashCinder extends CardImpl {
// Chroma - When Heartlash Cinder enters the battlefield, it gets +X/+0 until end of turn, where X is the number of red mana symbols in the mana costs of permanents you control.
ContinuousEffect effect = new BoostSourceEffect(new ChromaHeartlashCinderCount(), StaticValue.get(0), Duration.EndOfTurn, true);
- effect.setText("Chroma — When Heartlash Cinder enters the battlefield, it gets +X/+0 until end of turn, where X is the number of red mana symbols in the mana costs of permanents you control.");
- this.addAbility(new EntersBattlefieldTriggeredAbility(effect, false, true));
+ effect.setText("it gets +X/+0 until end of turn, where X is the number of red mana symbols in the mana costs of permanents you control");
+ this.addAbility(new EntersBattlefieldTriggeredAbility(
+ effect, false)
+ .withFlavorWord("Chroma")
+ );
}
diff --git a/Mage.Sets/src/mage/cards/i/IsochronScepter.java b/Mage.Sets/src/mage/cards/i/IsochronScepter.java
index b6e6ede572e..d2ab47d3751 100644
--- a/Mage.Sets/src/mage/cards/i/IsochronScepter.java
+++ b/Mage.Sets/src/mage/cards/i/IsochronScepter.java
@@ -35,8 +35,10 @@ public final class IsochronScepter extends CardImpl {
// Imprint - When Isochron Scepter enters the battlefield, you may exile an
// instant card with converted mana cost 2 or less from your hand.
- this.addAbility(new EntersBattlefieldTriggeredAbility(new IsochronScepterImprintEffect(),
- true, "Imprint — "));
+ this.addAbility(new EntersBattlefieldTriggeredAbility(
+ new IsochronScepterImprintEffect(),true)
+ .withFlavorWord("Imprint")
+ );
// {2}, {tap}: You may copy the exiled card. If you do, you may cast the
// copy without paying its mana cost.
diff --git a/Mage.Sets/src/mage/cards/i/IzoniThousandEyed.java b/Mage.Sets/src/mage/cards/i/IzoniThousandEyed.java
index e436eb348ce..7d5b792d5ad 100644
--- a/Mage.Sets/src/mage/cards/i/IzoniThousandEyed.java
+++ b/Mage.Sets/src/mage/cards/i/IzoniThousandEyed.java
@@ -43,8 +43,9 @@ public final class IzoniThousandEyed extends CardImpl {
new CardsInControllerGraveyardCount(
StaticFilters.FILTER_CARD_CREATURE
)
- ), false, "Undergrowth — "
- ));
+ ), false)
+ .withFlavorWord("Undergrowth")
+ );
// {B}{G}, Sacrifice another creature: You gain 1 life and draw a card.
Ability ability = new SimpleActivatedAbility(
diff --git a/Mage.Sets/src/mage/cards/k/KraulForagers.java b/Mage.Sets/src/mage/cards/k/KraulForagers.java
index 33bb94a80b2..6677fcc4675 100644
--- a/Mage.Sets/src/mage/cards/k/KraulForagers.java
+++ b/Mage.Sets/src/mage/cards/k/KraulForagers.java
@@ -27,9 +27,9 @@ public final class KraulForagers extends CardImpl {
// Undergrowth — When Kraul Foragers enters the battlefield, you gain 1 life for each creature card in your graveyard.
this.addAbility(new EntersBattlefieldTriggeredAbility(
- new GainLifeEffect(new CardsInControllerGraveyardCount(StaticFilters.FILTER_CARD_CREATURE)),
- false, "Undergrowth — "
- ));
+ new GainLifeEffect(new CardsInControllerGraveyardCount(StaticFilters.FILTER_CARD_CREATURE)), false)
+ .withFlavorWord("Undergrowth")
+ );
}
private KraulForagers(final KraulForagers card) {
diff --git a/Mage.Sets/src/mage/cards/k/KraulHarpooner.java b/Mage.Sets/src/mage/cards/k/KraulHarpooner.java
index 6c7456a8ee5..c2f85a100b8 100644
--- a/Mage.Sets/src/mage/cards/k/KraulHarpooner.java
+++ b/Mage.Sets/src/mage/cards/k/KraulHarpooner.java
@@ -50,10 +50,10 @@ public final class KraulHarpooner extends CardImpl {
// Undergrowth — When Kraul Harpooner enters the battlefield, choose up to one target creature with flying you don't control. Kraul Harpooner gets +X/+0 until end of turn, where X is the number of creature cards in your graveyard, then you may have Kraul Harpooner fight that creature.
Ability ability = new EntersBattlefieldTriggeredAbility(
- new KraulHarpoonerEffect(), false,
- "Undergrowth — "
+ new KraulHarpoonerEffect(), false
);
ability.addTarget(new TargetPermanent(0, 1, filter, false));
+ ability.withFlavorWord("Undergrowth");
this.addAbility(ability);
}
diff --git a/Mage.Sets/src/mage/cards/l/LieutenantsOfTheGuard.java b/Mage.Sets/src/mage/cards/l/LieutenantsOfTheGuard.java
index afe700eca80..d9cdd4137ba 100644
--- a/Mage.Sets/src/mage/cards/l/LieutenantsOfTheGuard.java
+++ b/Mage.Sets/src/mage/cards/l/LieutenantsOfTheGuard.java
@@ -34,8 +34,9 @@ public final class LieutenantsOfTheGuard extends CardImpl {
// each player votes for strength or numbers. Put a +1/+1 counter on Lieutenants of the Guard for each
// strength vote and put a 1/1 white Soldier creature token onto the battlefield for each numbers vote.
this.addAbility(new EntersBattlefieldTriggeredAbility(
- new LieutenantsOfTheGuardEffect(), false, "Council's dilemma — "
- ));
+ new LieutenantsOfTheGuardEffect(), false)
+ .withFlavorWord("Council's dilemma")
+ );
}
private LieutenantsOfTheGuard(final LieutenantsOfTheGuard card) {
diff --git a/Mage.Sets/src/mage/cards/l/LotlethGiant.java b/Mage.Sets/src/mage/cards/l/LotlethGiant.java
index 14af3fd4c07..6bed0be0a87 100644
--- a/Mage.Sets/src/mage/cards/l/LotlethGiant.java
+++ b/Mage.Sets/src/mage/cards/l/LotlethGiant.java
@@ -31,9 +31,9 @@ public final class LotlethGiant extends CardImpl {
Ability ability = new EntersBattlefieldTriggeredAbility(
new DamageTargetEffect(new CardsInControllerGraveyardCount(
StaticFilters.FILTER_CARD_CREATURE
- ), "it"), false, "Undergrowth — "
- );
+ ), "it"), false);
ability.addTarget(new TargetOpponent());
+ ability.withFlavorWord("Undergrowth");
this.addAbility(ability);
}
diff --git a/Mage.Sets/src/mage/cards/m/MagisterOfWorth.java b/Mage.Sets/src/mage/cards/m/MagisterOfWorth.java
index 119266926e2..f4022832bfd 100644
--- a/Mage.Sets/src/mage/cards/m/MagisterOfWorth.java
+++ b/Mage.Sets/src/mage/cards/m/MagisterOfWorth.java
@@ -41,7 +41,10 @@ public final class MagisterOfWorth extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// Will of the council - When Magister of Worth enters the battlefield, starting with you, each player votes for grace or condemnation. If grace gets more votes, each player returns each creature card from their graveyard to the battlefield. If condemnation gets more votes or the vote is tied, destroy all creatures other than Magister of Worth.
- this.addAbility(new EntersBattlefieldTriggeredAbility(new MagisterOfWorthEffect(), false, true));
+ this.addAbility(new EntersBattlefieldTriggeredAbility(
+ new MagisterOfWorthEffect(), false)
+ .withFlavorWord("Will of the council")
+ );
}
private MagisterOfWorth(final MagisterOfWorth card) {
@@ -64,8 +67,7 @@ class MagisterOfWorthEffect extends OneShotEffect {
MagisterOfWorthEffect() {
super(Outcome.Benefit);
- staticText = "Will of the council — When {this} enters the battlefield, " +
- "starting with you, each player votes for grace or condemnation. " +
+ staticText = "starting with you, each player votes for grace or condemnation. " +
"If grace gets more votes, each player returns each creature card from their graveyard to the battlefield. " +
"If condemnation gets more votes or the vote is tied, destroy all creatures other than {this}.";
}
diff --git a/Mage.Sets/src/mage/cards/m/MessengerJays.java b/Mage.Sets/src/mage/cards/m/MessengerJays.java
index f75fe807404..67cbe0eccd0 100644
--- a/Mage.Sets/src/mage/cards/m/MessengerJays.java
+++ b/Mage.Sets/src/mage/cards/m/MessengerJays.java
@@ -35,8 +35,9 @@ public final class MessengerJays extends CardImpl {
// Council's dilemma — When Messenger Jays enters the battlefield, starting with you, each player votes for feather or quill. Put a +1/+1 counter on Messenger Jays for each feather vote and draw a card for each quill vote. For each card drawn this way, discard a card.
this.addAbility(new EntersBattlefieldTriggeredAbility(
- new MessengerJaysEffect(), false, "Council's dilemma — "
- ));
+ new MessengerJaysEffect(), false)
+ .withFlavorWord("Council's dilemma")
+ );
}
private MessengerJays(final MessengerJays card) {
diff --git a/Mage.Sets/src/mage/cards/m/MirrorGolem.java b/Mage.Sets/src/mage/cards/m/MirrorGolem.java
index ad41c1a0529..4e5c524e1c3 100644
--- a/Mage.Sets/src/mage/cards/m/MirrorGolem.java
+++ b/Mage.Sets/src/mage/cards/m/MirrorGolem.java
@@ -34,8 +34,9 @@ public final class MirrorGolem extends CardImpl {
this.toughness = new MageInt(4);
// Imprint - When Mirror Golem enters the battlefield, you may exile target card from a graveyard.
- Ability ability = new EntersBattlefieldTriggeredAbility(new MirrorGolemImprintEffect(), true, "Imprint — ");
+ Ability ability = new EntersBattlefieldTriggeredAbility(new MirrorGolemImprintEffect(), true);
ability.addTarget(new TargetCardInGraveyard());
+ ability.withFlavorWord("Imprint");
this.addAbility(ability);
// Mirror Golem has protection from each of the exiled card's card types.
diff --git a/Mage.Sets/src/mage/cards/m/MoodmarkPainter.java b/Mage.Sets/src/mage/cards/m/MoodmarkPainter.java
index bd1adfd9315..802d68d6ea4 100644
--- a/Mage.Sets/src/mage/cards/m/MoodmarkPainter.java
+++ b/Mage.Sets/src/mage/cards/m/MoodmarkPainter.java
@@ -41,8 +41,7 @@ public final class MoodmarkPainter extends CardImpl {
new MenaceAbility(),
Duration.EndOfTurn
).setText("target creature gains menace"),
- false, "Undergrowth — "
- );
+ false);
ability.addEffect(new BoostTargetEffect(
xValue, StaticValue.get(0),
Duration.EndOfTurn, true
@@ -50,6 +49,7 @@ public final class MoodmarkPainter extends CardImpl {
+ "where X is the number of creature cards in your graveyard")
);
ability.addTarget(new TargetCreaturePermanent());
+ ability.withFlavorWord("Undergrowth");
this.addAbility(ability);
}
diff --git a/Mage.Sets/src/mage/cards/m/MournersShield.java b/Mage.Sets/src/mage/cards/m/MournersShield.java
index 2b176e44ba9..571faa45aee 100644
--- a/Mage.Sets/src/mage/cards/m/MournersShield.java
+++ b/Mage.Sets/src/mage/cards/m/MournersShield.java
@@ -41,8 +41,9 @@ public final class MournersShield extends CardImpl {
// Imprint - When Mourner's Shield enters the battlefield, you may exile target card from a graveyard.
- Ability ability = new EntersBattlefieldTriggeredAbility(new MournersShieldImprintEffect(), true, "Imprint — ");
+ Ability ability = new EntersBattlefieldTriggeredAbility(new MournersShieldImprintEffect(), true);
ability.addTarget(new TargetCardInGraveyard());
+ ability.withFlavorWord("Imprint");
this.addAbility(ability);
// {2}, {tap}: Prevent all damage that would be dealt this turn by a source of your choice that shares a color with the exiled card.
diff --git a/Mage.Sets/src/mage/cards/o/OrchardElemental.java b/Mage.Sets/src/mage/cards/o/OrchardElemental.java
index 11006f316f5..adbb36ae999 100644
--- a/Mage.Sets/src/mage/cards/o/OrchardElemental.java
+++ b/Mage.Sets/src/mage/cards/o/OrchardElemental.java
@@ -31,8 +31,9 @@ public final class OrchardElemental extends CardImpl {
// Council's dilemma &mdash When Orchard Elemental enters the battlefield, starting with you, each player votes for sprout or harvest. Put two +1/+1 counters on Orchard Elemental for each sprout vote. You gain 3 life for each harvest vote.
this.addAbility(new EntersBattlefieldTriggeredAbility(
- new OrchardElementalEffect(), false, "Council's dilemma — "
- ));
+ new OrchardElementalEffect(), false)
+ .withFlavorWord("Council's dilemma")
+ );
}
private OrchardElemental(final OrchardElemental card) {
diff --git a/Mage.Sets/src/mage/cards/o/OutrageShaman.java b/Mage.Sets/src/mage/cards/o/OutrageShaman.java
index afbdbbd3356..9a9e56f9b24 100644
--- a/Mage.Sets/src/mage/cards/o/OutrageShaman.java
+++ b/Mage.Sets/src/mage/cards/o/OutrageShaman.java
@@ -31,9 +31,10 @@ public final class OutrageShaman extends CardImpl {
// Chroma - When Outrage Shaman enters the battlefield, it deals damage to target creature equal to the number of red mana symbols in the mana costs of permanents you control.
Effect effect = new DamageTargetEffect(new ChromaOutrageShamanCount());
- effect.setText("Chroma — When Outrage Shaman enters the battlefield, it deals damage to target creature equal to the number of red mana symbols in the mana costs of permanents you control.");
- Ability ability = new EntersBattlefieldTriggeredAbility(effect, false, true);
+ effect.setText("it deals damage to target creature equal to the number of red mana symbols in the mana costs of permanents you control");
+ Ability ability = new EntersBattlefieldTriggeredAbility(effect, false);
ability.addTarget(new TargetCreaturePermanent());
+ ability.withFlavorWord("Chroma");
this.addAbility(ability);
}
diff --git a/Mage.Sets/src/mage/cards/p/PropheticTitan.java b/Mage.Sets/src/mage/cards/p/PropheticTitan.java
index 91489e77086..648bf296302 100644
--- a/Mage.Sets/src/mage/cards/p/PropheticTitan.java
+++ b/Mage.Sets/src/mage/cards/p/PropheticTitan.java
@@ -52,8 +52,7 @@ public final class PropheticTitan extends CardImpl {
class PropheticTitanTriggeredAbility extends EntersBattlefieldTriggeredAbility {
public PropheticTitanTriggeredAbility() {
- super(new DamageTargetEffect(4), false, "Delirium — ");
- this.addTarget(new TargetAnyTarget());
+ super(new DamageTargetEffect(4), false);
this.addMode(new Mode(new LookLibraryAndPickControllerEffect(
StaticValue.get(4), false, StaticValue.get(1),
StaticFilters.FILTER_CARD, Zone.LIBRARY, false, false
@@ -62,7 +61,9 @@ class PropheticTitanTriggeredAbility extends EntersBattlefieldTriggeredAbility {
this.getModes().setChooseText(
"choose one. If there are four or more card types among cards in your graveyard, choose both instead."
);
+ this.addTarget(new TargetAnyTarget());
this.addHint(CardTypesInGraveyardHint.YOU);
+ this.withFlavorWord("Delirium");
}
private PropheticTitanTriggeredAbility(final PropheticTitanTriggeredAbility ability) {
diff --git a/Mage.Sets/src/mage/cards/p/PrototypePortal.java b/Mage.Sets/src/mage/cards/p/PrototypePortal.java
index f9de015016f..7e505fff634 100644
--- a/Mage.Sets/src/mage/cards/p/PrototypePortal.java
+++ b/Mage.Sets/src/mage/cards/p/PrototypePortal.java
@@ -37,8 +37,9 @@ public final class PrototypePortal extends CardImpl {
// Imprint - When Prototype Portal enters the battlefield, you may exile an artifact card from your hand.
this.addAbility(new EntersBattlefieldTriggeredAbility(
- new PrototypePortalEffect(), true, "Imprint — "
- ));
+ new PrototypePortalEffect(), true)
+ .withFlavorWord("Imprint")
+ );
// {X}, {tap}: Create a token that's a copy of the exiled card. X is the converted mana cost of that card.
Ability ability = new SimpleActivatedAbility(new PrototypePortalCreateTokenEffect(), new ManaCostsImpl("{X}"));
diff --git a/Mage.Sets/src/mage/cards/r/RadiantEpicure.java b/Mage.Sets/src/mage/cards/r/RadiantEpicure.java
index 0412ca0ff61..995d45cf9d5 100644
--- a/Mage.Sets/src/mage/cards/r/RadiantEpicure.java
+++ b/Mage.Sets/src/mage/cards/r/RadiantEpicure.java
@@ -33,8 +33,9 @@ public final class RadiantEpicure extends CardImpl {
// Converge — When Radiant Epicure enters the battlefield, each opponent loses X life and you gain X life, where X is the number of colors of mana spent to cast this spell.
this.addAbility(new EntersBattlefieldTriggeredAbility(
- new RadiantEpicureEffect(), false, "Converge — "
- ));
+ new RadiantEpicureEffect(), false)
+ .withFlavorWord("Converge")
+ );
}
private RadiantEpicure(final RadiantEpicure card) {
diff --git a/Mage.Sets/src/mage/cards/r/RangeTrooper.java b/Mage.Sets/src/mage/cards/r/RangeTrooper.java
index d62920ba7ec..059cb4a3469 100644
--- a/Mage.Sets/src/mage/cards/r/RangeTrooper.java
+++ b/Mage.Sets/src/mage/cards/r/RangeTrooper.java
@@ -41,7 +41,7 @@ public final class RangeTrooper extends CardImpl {
this.toughness = new MageInt(2);
// Trooper creatures you control have "When this creature enters that battlefield, you may exile target creature. Return that creature to the battlefield at the beginning of the next end step."
- Ability ability = new EntersBattlefieldTriggeredAbility(new RangeTrooperEffect(), true, false);
+ Ability ability = new EntersBattlefieldTriggeredAbility(new RangeTrooperEffect(), true);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
new GainAbilityControlledEffect(ability, Duration.WhileOnBattlefield, filter, false)));
diff --git a/Mage.Sets/src/mage/cards/r/RonaDiscipleOfGix.java b/Mage.Sets/src/mage/cards/r/RonaDiscipleOfGix.java
index bd6e056ea3f..10daadc7156 100644
--- a/Mage.Sets/src/mage/cards/r/RonaDiscipleOfGix.java
+++ b/Mage.Sets/src/mage/cards/r/RonaDiscipleOfGix.java
@@ -46,8 +46,12 @@ public final class RonaDiscipleOfGix extends CardImpl {
this.toughness = new MageInt(2);
// When Rona, Disciple of Gix enters the battlefield, you may exile target historic card from your graveyard.
- String abilityText = "When {this} enters the battlefield, you may exile target historic card from your graveyard. (Artifacts, legendaries, and Sagas are historic.)";
- Ability ability = new EntersBattlefieldTriggeredAbility(new ExileTargetEffect().setToSourceExileZone(true), true, abilityText);
+ Ability ability = new EntersBattlefieldTriggeredAbility(
+ new ExileTargetEffect()
+ .setToSourceExileZone(true)
+ .setText("exile target historic card from your graveyard. (Artifacts, legendaries, and Sagas are historic.)"),
+ true
+ );
ability.addTarget(new TargetCardInYourGraveyard(new FilterHistoricCard("historic card from your graveyard")));
this.addAbility(ability);
diff --git a/Mage.Sets/src/mage/cards/s/SelvalasEnforcer.java b/Mage.Sets/src/mage/cards/s/SelvalasEnforcer.java
index da7c61a9974..d3ae7a8bc19 100644
--- a/Mage.Sets/src/mage/cards/s/SelvalasEnforcer.java
+++ b/Mage.Sets/src/mage/cards/s/SelvalasEnforcer.java
@@ -34,10 +34,9 @@ public final class SelvalasEnforcer extends CardImpl {
// Parley - When Selvala's Enforcer enters the battlefield, each player reveals the top card of their library.
// For each nonland card revealed this way, put a +1/+1 counter on Selvala's Enforcer. Then each player draws a card.
- Ability ability = new EntersBattlefieldTriggeredAbility(new SelvalasEnforcerEffect(), false, "Parley — ");
- Effect effect = new DrawCardAllEffect(1);
- effect.setText("Then each player draws a card");
- ability.addEffect(effect);
+ Ability ability = new EntersBattlefieldTriggeredAbility(new SelvalasEnforcerEffect(), false);
+ ability.addEffect(new DrawCardAllEffect(1).setText("Then each player draws a card"));
+ ability.withFlavorWord("Parley");
this.addAbility(ability);
}
diff --git a/Mage.Sets/src/mage/cards/s/SoulFoundry.java b/Mage.Sets/src/mage/cards/s/SoulFoundry.java
index 0b897eb5fb0..0cfa5ac01d2 100644
--- a/Mage.Sets/src/mage/cards/s/SoulFoundry.java
+++ b/Mage.Sets/src/mage/cards/s/SoulFoundry.java
@@ -37,8 +37,9 @@ public final class SoulFoundry extends CardImpl {
// Imprint - When Soul Foundry enters the battlefield, you may exile a creature card from your hand.
this.addAbility(new EntersBattlefieldTriggeredAbility(
- new SoulFoundryImprintEffect(), true, "Imprint — "
- ));
+ new SoulFoundryImprintEffect(), true)
+ .withFlavorWord("Imprint")
+ );
// {X}, {T}: Create a token that's a copy of the exiled card. X is the converted mana cost of that card.
Ability ability = new SimpleActivatedAbility(new SoulFoundryEffect(), new ManaCostsImpl("{X}"));
diff --git a/Mage.Sets/src/mage/cards/s/Spellbinder.java b/Mage.Sets/src/mage/cards/s/Spellbinder.java
index 5e7a8c8cdfd..5753a14ff56 100644
--- a/Mage.Sets/src/mage/cards/s/Spellbinder.java
+++ b/Mage.Sets/src/mage/cards/s/Spellbinder.java
@@ -39,7 +39,9 @@ public final class Spellbinder extends CardImpl {
// Imprint - When Spellbinder enters the battlefield, you may exile
// an instant card from your hand.
this.addAbility(new EntersBattlefieldTriggeredAbility(
- new SpellbinderImprintEffect(), true, "Imprint — "));
+ new SpellbinderImprintEffect(), true)
+ .withFlavorWord("Imprint")
+ );
// Whenever equipped creature deals combat damage to a player, you may
// copy the exiled card. If you do, you may cast the copy without paying its mana cost.
diff --git a/Mage.Sets/src/mage/cards/s/SpellweaverHelix.java b/Mage.Sets/src/mage/cards/s/SpellweaverHelix.java
index a0e23b42219..7089e4dc6bc 100644
--- a/Mage.Sets/src/mage/cards/s/SpellweaverHelix.java
+++ b/Mage.Sets/src/mage/cards/s/SpellweaverHelix.java
@@ -39,8 +39,9 @@ public final class SpellweaverHelix extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
// Imprint - When Spellweaver Helix enters the battlefield, you may exile two target sorcery cards from a single graveyard.
- Ability ability = new EntersBattlefieldTriggeredAbility(new SpellweaverHelixImprintEffect(), true, "Imprint — ");
+ Ability ability = new EntersBattlefieldTriggeredAbility(new SpellweaverHelixImprintEffect(), true);
ability.addTarget(new TargetCardInASingleGraveyard(2, 2, filter));
+ ability.withFlavorWord("Imprint");
this.addAbility(ability);
// Whenever a player casts a card, if it has the same name as one of the cards exiled with Spellweaver Helix, you may copy the other. If you do, you may cast the copy without paying its mana cost.
diff --git a/Mage.Sets/src/mage/cards/s/SpringjackShepherd.java b/Mage.Sets/src/mage/cards/s/SpringjackShepherd.java
index 81cd3aec5fe..0f7a9424cf8 100644
--- a/Mage.Sets/src/mage/cards/s/SpringjackShepherd.java
+++ b/Mage.Sets/src/mage/cards/s/SpringjackShepherd.java
@@ -34,9 +34,11 @@ public final class SpringjackShepherd extends CardImpl {
// Chroma - When Springjack Shepherd enters the battlefield, create a 0/1 white Goat creature token for each white mana symbol in the mana costs of permanents you control.
Effect effect = new CreateTokenEffect(new GoatToken(), new ChromaSpringjackShepherdCount());
- effect.setText("Chroma — When Springjack Shepherd enters the battlefield, create a 0/1 white Goat creature token for each white mana symbol in the mana costs of permanents you control.");
- this.addAbility(new EntersBattlefieldTriggeredAbility(effect, false, true));
-
+ effect.setText("create a 0/1 white Goat creature token for each white mana symbol in the mana costs of permanents you control.");
+ this.addAbility(new EntersBattlefieldTriggeredAbility(
+ effect, false)
+ .withFlavorWord("Chroma")
+ );
}
private SpringjackShepherd(final SpringjackShepherd card) {
diff --git a/Mage.Sets/src/mage/cards/s/SummonersEgg.java b/Mage.Sets/src/mage/cards/s/SummonersEgg.java
index 34796348aa6..45ba29e963a 100644
--- a/Mage.Sets/src/mage/cards/s/SummonersEgg.java
+++ b/Mage.Sets/src/mage/cards/s/SummonersEgg.java
@@ -34,7 +34,11 @@ public final class SummonersEgg extends CardImpl {
this.toughness = new MageInt(4);
// Imprint - When Summoner's Egg enters the battlefield, you may exile a card from your hand face down.
- this.addAbility(new EntersBattlefieldTriggeredAbility(new SummonersEggImprintEffect(), true, "Imprint — "));
+ this.addAbility(new EntersBattlefieldTriggeredAbility(
+ new SummonersEggImprintEffect(), true)
+ .withFlavorWord("Imprint")
+ );
+
// When Summoner's Egg dies, turn the exiled card face up. If it's a creature card, put it onto the battlefield under your control.
this.addAbility(new DiesSourceTriggeredAbility(new SummonersEggPutOntoBattlefieldEffect()));
}
diff --git a/Mage.Sets/src/mage/cards/t/ThoughtPrison.java b/Mage.Sets/src/mage/cards/t/ThoughtPrison.java
index 8e830a6915d..6f0d8cf80eb 100644
--- a/Mage.Sets/src/mage/cards/t/ThoughtPrison.java
+++ b/Mage.Sets/src/mage/cards/t/ThoughtPrison.java
@@ -38,8 +38,9 @@ public final class ThoughtPrison extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{5}");
// Imprint - When Thought Prison enters the battlefield, you may have target player reveal their hand. If you do, choose a nonland card from it and exile that card.
- EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new ThoughtPrisonImprintEffect(), true, "Imprint — ");
+ EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new ThoughtPrisonImprintEffect(), true);
ability.addTarget(new TargetPlayer());
+ ability.withFlavorWord("Imprint");
this.addAbility(ability);
// Whenever a player casts a spell that shares a color or converted mana cost with the exiled card, Thought Prison deals 2 damage to that player.
diff --git a/Mage.Sets/src/mage/cards/v/VedalkenPlotter.java b/Mage.Sets/src/mage/cards/v/VedalkenPlotter.java
index 91f3bde6d14..739ef47ed11 100644
--- a/Mage.Sets/src/mage/cards/v/VedalkenPlotter.java
+++ b/Mage.Sets/src/mage/cards/v/VedalkenPlotter.java
@@ -42,7 +42,7 @@ public final class VedalkenPlotter extends CardImpl {
// When Vedalken Plotter enters the battlefield, exchange control of target land you control and target land an opponent controls.
Effect effect = new ExchangeControlTargetEffect(Duration.EndOfGame, rule, false, true);
effect.setText("exchange control of target land you control and target land an opponent controls");
- Ability ability = new EntersBattlefieldTriggeredAbility(effect, false, true);
+ Ability ability = new EntersBattlefieldTriggeredAbility(effect, false);
ability.addTarget(new TargetControlledPermanent(new FilterControlledLandPermanent()));
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
diff --git a/Mage.Sets/src/mage/cards/v/VigorsporeWurm.java b/Mage.Sets/src/mage/cards/v/VigorsporeWurm.java
index 24a316c9158..5c4b9838085 100644
--- a/Mage.Sets/src/mage/cards/v/VigorsporeWurm.java
+++ b/Mage.Sets/src/mage/cards/v/VigorsporeWurm.java
@@ -42,13 +42,13 @@ public final class VigorsporeWurm extends CardImpl {
VigilanceAbility.getInstance(),
Duration.EndOfTurn
).setText("target creature gains vigilance"),
- false, "Undergrowth — "
- );
+ false);
ability.addEffect(new BoostTargetEffect(
xValue, xValue, Duration.EndOfTurn, true
).setText("and gets +X/+X until end of turn, "
+ "where X is the number of creature cards in your graveyard."));
ability.addTarget(new TargetCreaturePermanent());
+ ability.withFlavorWord("Undergrowth");
this.addAbility(ability);
// Vigorspore Wurm can't be blocked by more than one creature.
diff --git a/Mage/src/main/java/mage/abilities/common/EntersBattlefieldTriggeredAbility.java b/Mage/src/main/java/mage/abilities/common/EntersBattlefieldTriggeredAbility.java
index 653216c5586..1afce01d2db 100644
--- a/Mage/src/main/java/mage/abilities/common/EntersBattlefieldTriggeredAbility.java
+++ b/Mage/src/main/java/mage/abilities/common/EntersBattlefieldTriggeredAbility.java
@@ -1,5 +1,6 @@
package mage.abilities.common;
+import mage.abilities.Ability;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.Effect;
import mage.constants.Zone;
@@ -11,31 +12,26 @@ import mage.game.events.GameEvent;
*/
public class EntersBattlefieldTriggeredAbility extends TriggeredAbilityImpl {
- protected String rulePrefix;
- protected boolean noRule;
+ protected boolean ignoreRulesGeneration; // use it with custom rules (if you don't want ETB auto-generated text)
+ protected String etbFlavorWord = null;
public EntersBattlefieldTriggeredAbility(Effect effect) {
this(effect, false);
}
public EntersBattlefieldTriggeredAbility(Effect effect, boolean optional) {
- this(effect, optional, null);
+ this(effect, optional, false);
}
- public EntersBattlefieldTriggeredAbility(Effect effect, boolean optional, boolean noRule) {
- this(effect, optional, null);
- this.noRule = noRule;
- }
-
- public EntersBattlefieldTriggeredAbility(Effect effect, boolean optional, String rulePrefix) {
+ public EntersBattlefieldTriggeredAbility(Effect effect, boolean optional, boolean ignoreRulesGeneration) {
super(Zone.ALL, effect, optional); // Zone.All because a creature with trigger can be put into play and be sacrificed during the resolution of an effect (discard Obstinate Baloth with Smallpox)
- this.rulePrefix = rulePrefix;
+ this.ignoreRulesGeneration = ignoreRulesGeneration;
}
public EntersBattlefieldTriggeredAbility(final EntersBattlefieldTriggeredAbility ability) {
super(ability);
- this.rulePrefix = ability.rulePrefix;
- this.noRule = ability.noRule;
+ this.ignoreRulesGeneration = ability.ignoreRulesGeneration;
+ this.etbFlavorWord = ability.etbFlavorWord;
}
@Override
@@ -52,12 +48,21 @@ public class EntersBattlefieldTriggeredAbility extends TriggeredAbilityImpl {
return false;
}
+ @Override
+ public Ability withFlavorWord(String flavorWord) {
+ // must put flavor word before auto-generated rules, so keep it in etb place
+ super.withFlavorWord(null);
+ this.etbFlavorWord = flavorWord;
+ return this;
+ }
+
@Override
public String getRule() {
- if (noRule) {
+ if (ignoreRulesGeneration) {
return super.getRule();
}
- return (rulePrefix != null ? rulePrefix : "") + "When {this} enters the battlefield, " + super.getRule();
+ return (this.etbFlavorWord == null ? "" : "" + this.etbFlavorWord + " — ")
+ + "When {this} enters the battlefield, " + super.getRule();
}
@Override
diff --git a/Mage/src/main/java/mage/abilities/common/EntersBattlefieldUntappedTriggeredAbility.java b/Mage/src/main/java/mage/abilities/common/EntersBattlefieldUntappedTriggeredAbility.java
index 8aa7c5aa6de..5e872955a05 100644
--- a/Mage/src/main/java/mage/abilities/common/EntersBattlefieldUntappedTriggeredAbility.java
+++ b/Mage/src/main/java/mage/abilities/common/EntersBattlefieldUntappedTriggeredAbility.java
@@ -12,7 +12,7 @@ public class EntersBattlefieldUntappedTriggeredAbility extends EntersBattlefield
public EntersBattlefieldUntappedTriggeredAbility(Effect effect, boolean optional) {
super(effect, optional);
- this.noRule = true;
+ this.ignoreRulesGeneration = true;
}
private EntersBattlefieldUntappedTriggeredAbility(final EntersBattlefieldUntappedTriggeredAbility ability) {