mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
Fixed #13056
This commit is contained in:
parent
2949444089
commit
b571080260
1 changed files with 9 additions and 2 deletions
|
|
@ -17,6 +17,7 @@ import mage.target.common.TargetCreaturePermanent;
|
||||||
import mage.target.targetpointer.FixedTarget;
|
import mage.target.targetpointer.FixedTarget;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
import mage.game.permanent.PermanentToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
|
|
@ -44,7 +45,7 @@ public final class ComeBackWrong extends CardImpl {
|
||||||
class ComeBackWrongEffect extends OneShotEffect {
|
class ComeBackWrongEffect extends OneShotEffect {
|
||||||
|
|
||||||
ComeBackWrongEffect() {
|
ComeBackWrongEffect() {
|
||||||
super(Outcome.Benefit);
|
super(Outcome.Neutral);
|
||||||
staticText = "destroy target creature. If a creature card is put into a graveyard this way, " +
|
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";
|
"return it to the battlefield under your control. Sacrifice it at the beginning of your next end step";
|
||||||
}
|
}
|
||||||
|
|
@ -65,8 +66,14 @@ class ComeBackWrongEffect extends OneShotEffect {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
permanent.destroy(source, game);
|
permanent.destroy(source, game);
|
||||||
|
// tokens are not creature cards
|
||||||
|
if (permanent instanceof PermanentToken) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Card card = permanent.getMainCard();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
Player player = game.getPlayer(source.getControllerId());
|
Player player = game.getPlayer(source.getControllerId());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue