adjust Scrib Nibblers, Suffer the Past

(doesn't need special exile zone)
This commit is contained in:
xenohedron 2023-09-27 22:25:29 -04:00
parent f4ad851233
commit 1c9e954127
2 changed files with 14 additions and 14 deletions

View file

@ -1,4 +1,3 @@
package mage.cards.s;
import java.util.UUID;
@ -54,7 +53,7 @@ public final class ScribNibblers extends CardImpl {
class ScribNibblersEffect extends OneShotEffect {
public ScribNibblersEffect() {
ScribNibblersEffect() {
super(Outcome.Neutral);
this.staticText = "Exile the top card of target player's library. If it's a land card, you gain 1 life";
}
@ -72,14 +71,17 @@ class ScribNibblersEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) {
Player you = game.getPlayer(source.getControllerId());
Player targetPlayer = game.getPlayer(source.getFirstTarget());
if (targetPlayer != null && targetPlayer.getLibrary().hasCards()) {
Card card = targetPlayer.getLibrary().getFromTop(game);
card.moveToExile(id, "Scrib Nibblers Exile", source, game);
if (card.isLand(game) && you != null) {
you.gainLife(1, game, source);
return true;
}
if (you == null || targetPlayer == null || !targetPlayer.getLibrary().hasCards()) {
return false;
}
return false;
Card card = targetPlayer.getLibrary().getFromTop(game);
if (card == null) {
return false;
}
you.moveCards(card, Zone.EXILED, source, game);
if (card.isLand(game)) {
you.gainLife(1, game, source);
}
return true;
}
}

View file

@ -1,4 +1,3 @@
package mage.cards.s;
import java.util.List;
@ -10,6 +9,7 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Zone;
import mage.filter.FilterCard;
import mage.game.Game;
import mage.players.Player;
@ -73,7 +73,7 @@ class SufferThePastEffect extends OneShotEffect {
for (UUID targetId : targets) {
Card card = game.getCard(targetId);
if (card != null) {
card.moveToExile(id, "Suffer the Past", source, game);
you.moveCards(card, Zone.EXILED, source, game);
numberExiled ++;
}
}
@ -87,5 +87,3 @@ class SufferThePastEffect extends OneShotEffect {
return false;
}
}