Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions Mage.Sets/src/mage/cards/e/EmeritusOfTruce.java
Original file line number Diff line number Diff line change
@@ -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);
}
}
4 changes: 3 additions & 1 deletion Mage.Sets/src/mage/sets/SecretsOfStrixhaven.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Loading