mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
[MID] Implemented Consider
This commit is contained in:
parent
2566707889
commit
f0b7d0b742
2 changed files with 71 additions and 0 deletions
70
Mage.Sets/src/mage/cards/c/Consider.java
Normal file
70
Mage.Sets/src/mage/cards/c/Consider.java
Normal file
|
@ -0,0 +1,70 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Consider extends CardImpl {
|
||||
|
||||
public Consider(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}");
|
||||
|
||||
// Look at the top card of your library. You may put that card into your graveyard.
|
||||
// Draw a card.
|
||||
this.getSpellAbility().addEffect(new ConsiderEffect());
|
||||
}
|
||||
|
||||
private Consider(final Consider card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Consider copy() {
|
||||
return new Consider(this);
|
||||
}
|
||||
}
|
||||
|
||||
class ConsiderEffect extends OneShotEffect {
|
||||
|
||||
ConsiderEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "Look at the top card of your library. " +
|
||||
"You may put that card into your graveyard.<br>Draw a card";
|
||||
}
|
||||
|
||||
private ConsiderEffect(final ConsiderEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConsiderEffect copy() {
|
||||
return new ConsiderEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player == null) {
|
||||
return false;
|
||||
}
|
||||
Card card = player.getLibrary().getFromTop(game);
|
||||
player.lookAtCards("Top card of your library", card, game);
|
||||
if (player.chooseUse(Outcome.AIDontUseIt, "Put the top card of your library into your graveyard?", source, game)) {
|
||||
player.moveCards(card, Zone.GRAVEYARD, source, game);
|
||||
}
|
||||
player.drawCards(1, source, game);
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -27,6 +27,7 @@ public final class InnistradMidnightHunt extends ExpansionSet {
|
|||
this.ratioBoosterMythic = 8;
|
||||
this.numBoosterDoubleFaced = 1;
|
||||
|
||||
cards.add(new SetCardInfo("Consider", 44, Rarity.COMMON, mage.cards.c.Consider.class));
|
||||
cards.add(new SetCardInfo("Forest", 276, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Island", 270, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Join the Dance", 229, Rarity.UNCOMMON, mage.cards.j.JoinTheDance.class));
|
||||
|
|
Loading…
Reference in a new issue