Skip to content

Commit

Permalink
Fixed #13056
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwadsworth committed Dec 4, 2024
1 parent 2949444 commit b571080
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Mage.Sets/src/mage/cards/c/ComeBackWrong.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import mage.target.targetpointer.FixedTarget;

import java.util.UUID;
import mage.game.permanent.PermanentToken;

/**
* @author TheElk801
Expand Down Expand Up @@ -44,7 +45,7 @@ public ComeBackWrong copy() {
class ComeBackWrongEffect extends OneShotEffect {

ComeBackWrongEffect() {
super(Outcome.Benefit);
super(Outcome.Neutral);
staticText = "destroy target creature. If a creature card is put into a graveyard this way, " +
"return it to the battlefield under your control. Sacrifice it at the beginning of your next end step";
}
Expand All @@ -65,8 +66,14 @@ public boolean apply(Game game, Ability source) {
return false;
}
permanent.destroy(source, game);
// tokens are not creature cards
if (permanent instanceof PermanentToken) {
return false;
}
Card card = permanent.getMainCard();
if (card == null || !card.isCreature(game) || !Zone.GRAVEYARD.match(game.getState().getZone(card.getId()))) {
if (card == null
|| !card.isCreature(game)
|| !Zone.GRAVEYARD.match(game.getState().getZone(card.getId()))) {
return true;
}
Player player = game.getPlayer(source.getControllerId());
Expand Down

0 comments on commit b571080

Please sign in to comment.