forked from External/mage
[VOW] Implemented Eruth, Tormented Prophet
This commit is contained in:
parent
4f387f5c33
commit
8bcfbec719
2 changed files with 93 additions and 0 deletions
92
Mage.Sets/src/mage/cards/e/EruthTormentedProphet.java
Normal file
92
Mage.Sets/src/mage/cards/e/EruthTormentedProphet.java
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
package mage.cards.e;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.ReplacementEffectImpl;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class EruthTormentedProphet extends CardImpl {
|
||||
|
||||
public EruthTormentedProphet(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}{R}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.WIZARD);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// If you would draw a card, exile the top two cards of your library instead. You may play those cards this turn.
|
||||
this.addAbility(new SimpleStaticAbility(new EruthTormentedProphetEffect()));
|
||||
}
|
||||
|
||||
private EruthTormentedProphet(final EruthTormentedProphet card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EruthTormentedProphet copy() {
|
||||
return new EruthTormentedProphet(this);
|
||||
}
|
||||
}
|
||||
|
||||
class EruthTormentedProphetEffect extends ReplacementEffectImpl {
|
||||
|
||||
EruthTormentedProphetEffect() {
|
||||
super(Duration.WhileOnBattlefield, Outcome.Benefit);
|
||||
staticText = "if you would draw a card, exile the top two cards " +
|
||||
"of your library instead. You may play those cards this turn";
|
||||
}
|
||||
|
||||
private EruthTormentedProphetEffect(final EruthTormentedProphetEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EruthTormentedProphetEffect copy() {
|
||||
return new EruthTormentedProphetEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
Player player = game.getPlayer(event.getPlayerId());
|
||||
if (player == null) {
|
||||
return true;
|
||||
}
|
||||
Set<Card> cards = player.getLibrary().getTopCards(game, 2);
|
||||
player.moveCards(cards, Zone.EXILED, source, game);
|
||||
for (Card card : cards) {
|
||||
CardUtil.makeCardPlayable(game, source, card, Duration.EndOfTurn, false);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checksEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.DRAW_CARD;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
return source.isControlledBy(event.getPlayerId());
|
||||
}
|
||||
}
|
||||
|
|
@ -120,6 +120,7 @@ public final class InnistradCrimsonVow extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Edgar's Awakening", 110, Rarity.UNCOMMON, mage.cards.e.EdgarsAwakening.class));
|
||||
cards.add(new SetCardInfo("Edgar, Charmed Groom", 236, Rarity.RARE, mage.cards.e.EdgarCharmedGroom.class));
|
||||
cards.add(new SetCardInfo("End the Festivities", 155, Rarity.COMMON, mage.cards.e.EndTheFestivities.class));
|
||||
cards.add(new SetCardInfo("Eruth, Tormented Prophet", 237, Rarity.RARE, mage.cards.e.EruthTormentedProphet.class));
|
||||
cards.add(new SetCardInfo("Estwald Shieldbasher", 11, Rarity.COMMON, mage.cards.e.EstwaldShieldbasher.class));
|
||||
cards.add(new SetCardInfo("Evolving Wilds", 263, Rarity.COMMON, mage.cards.e.EvolvingWilds.class));
|
||||
cards.add(new SetCardInfo("Faithbound Judge", 12, Rarity.MYTHIC, mage.cards.f.FaithboundJudge.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue