Skip to content

Commit

Permalink
adjust Scrib Nibblers, Suffer the Past
Browse files Browse the repository at this point in the history
(doesn't need special exile zone)
  • Loading branch information
xenohedron committed Sep 28, 2023
1 parent f4ad851 commit 1c9e954
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
22 changes: 12 additions & 10 deletions Mage.Sets/src/mage/cards/s/ScribNibblers.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

package mage.cards.s;

import java.util.UUID;
Expand Down Expand Up @@ -54,7 +53,7 @@ public ScribNibblers copy() {

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";
}
Expand All @@ -72,14 +71,17 @@ public ScribNibblersEffect copy() {
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;
}
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 false;
return true;
}
}
6 changes: 2 additions & 4 deletions Mage.Sets/src/mage/cards/s/SufferThePast.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

package mage.cards.s;

import java.util.List;
Expand All @@ -10,6 +9,7 @@
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;
Expand Down Expand Up @@ -73,7 +73,7 @@ public boolean apply(Game game, Ability source) {
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 ++;
}
}
Expand All @@ -87,5 +87,3 @@ public boolean apply(Game game, Ability source) {
return false;
}
}


0 comments on commit 1c9e954

Please sign in to comment.