diff --git a/Mage.Sets/src/mage/cards/e/EmeritusOfTruce.java b/Mage.Sets/src/mage/cards/e/EmeritusOfTruce.java new file mode 100644 index 000000000000..db115727f812 --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/EmeritusOfTruce.java @@ -0,0 +1,62 @@ +package mage.cards.e; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.condition.Condition; +import mage.abilities.condition.common.OpponentControlsMoreCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.BecomePreparedSourceEffect; +import mage.abilities.effects.common.CreateTokenTargetEffect; +import mage.abilities.effects.common.ExileAndGainLifeEqualPowerTargetEffect; +import mage.constants.SubType; +import mage.filter.StaticFilters; +import mage.game.permanent.token.Inkling11Token; +import mage.target.TargetPlayer; +import mage.target.common.TargetCreaturePermanent; +import mage.cards.CardSetInfo; +import mage.cards.PrepareCard; +import mage.constants.CardType; + +/** + * + * @author muz + */ +public final class EmeritusOfTruce extends PrepareCard { + + private static final Condition condition = new OpponentControlsMoreCondition(StaticFilters.FILTER_PERMANENT_CREATURES); + + public EmeritusOfTruce(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}{W}", "Swords to Plowshares", new CardType[]{CardType.INSTANT},"{W}"); + + this.subtype.add(SubType.CAT); + this.subtype.add(SubType.CLERIC); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // When this creature enters, target player creates a 1/1 white and black Inkling creature token with flying. Then if an opponent controls more creatures than you, this creature becomes prepared. + Ability ability = new EntersBattlefieldTriggeredAbility(new CreateTokenTargetEffect(new Inkling11Token())); + ability.addEffect(new ConditionalOneShotEffect( + new BecomePreparedSourceEffect(), + condition + ).setText("Then if an opponent controls more creatures than you, this creature becomes prepared")); + ability.addTarget(new TargetPlayer()); + this.addAbility(ability); + + // Swords to Plowshares + // Instant {W} + // Exile target creature. Its controller gains life equal to its power. + this.getSpellCard().getSpellAbility().addTarget(new TargetCreaturePermanent()); + this.getSpellCard().getSpellAbility().addEffect(new ExileAndGainLifeEqualPowerTargetEffect()); + } + + private EmeritusOfTruce(final EmeritusOfTruce card) { + super(card); + } + + @Override + public EmeritusOfTruce copy() { + return new EmeritusOfTruce(this); + } +} diff --git a/Mage.Sets/src/mage/sets/SecretsOfStrixhaven.java b/Mage.Sets/src/mage/sets/SecretsOfStrixhaven.java index 32cc6a86e277..20e27c1bb546 100644 --- a/Mage.Sets/src/mage/sets/SecretsOfStrixhaven.java +++ b/Mage.Sets/src/mage/sets/SecretsOfStrixhaven.java @@ -93,8 +93,10 @@ private SecretsOfStrixhaven() { cards.add(new SetCardInfo("Emeritus of Ideation", 306, Rarity.MYTHIC, mage.cards.e.EmeritusOfIdeation.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Emeritus of Ideation", 315, Rarity.MYTHIC, mage.cards.e.EmeritusOfIdeation.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Emeritus of Ideation", 45, Rarity.MYTHIC, mage.cards.e.EmeritusOfIdeation.class, NON_FULL_USE_VARIOUS)); - cards.add(new SetCardInfo("Emeritus of Woe", 324, Rarity.MYTHIC, mage.cards.e.EmeritusOfWoe.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Emeritus of Truce", 13, Rarity.MYTHIC, mage.cards.e.EmeritusOfTruce.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Emeritus of Truce", 309, Rarity.MYTHIC, mage.cards.e.EmeritusOfTruce.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Emeritus of Woe", 80, Rarity.MYTHIC, mage.cards.e.EmeritusOfWoe.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Emeritus of Woe", 324, Rarity.MYTHIC, mage.cards.e.EmeritusOfWoe.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Emil, Vastlands Roamer", 146, Rarity.UNCOMMON, mage.cards.e.EmilVastlandsRoamer.class)); cards.add(new SetCardInfo("Encouraging Aviator", 46, Rarity.UNCOMMON, mage.cards.e.EncouragingAviator.class)); cards.add(new SetCardInfo("End of the Hunt", 81, Rarity.UNCOMMON, mage.cards.e.EndOfTheHunt.class));