mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
real fix for b5710802
This commit is contained in:
parent
24687eb4af
commit
e9b29f7776
1 changed files with 3 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ class ComeBackWrongEffect extends OneShotEffect {
|
||||||
permanent.destroy(source, game);
|
permanent.destroy(source, game);
|
||||||
// tokens are not creature cards
|
// tokens are not creature cards
|
||||||
if (permanent instanceof PermanentToken) {
|
if (permanent instanceof PermanentToken) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
Card card = permanent.getMainCard();
|
Card card = permanent.getMainCard();
|
||||||
if (card == null
|
if (card == null
|
||||||
|
|
@ -78,11 +78,11 @@ class ComeBackWrongEffect extends OneShotEffect {
|
||||||
}
|
}
|
||||||
Player player = game.getPlayer(source.getControllerId());
|
Player player = game.getPlayer(source.getControllerId());
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
player.moveCards(card, Zone.BATTLEFIELD, source, game);
|
player.moveCards(card, Zone.BATTLEFIELD, source, game);
|
||||||
Permanent creature = game.getPermanent(card.getId());
|
Permanent creature = game.getPermanent(card.getId());
|
||||||
if (permanent != null) {
|
if (creature != null) {
|
||||||
game.addDelayedTriggeredAbility(new AtTheBeginOfPlayersNextEndStepDelayedTriggeredAbility(
|
game.addDelayedTriggeredAbility(new AtTheBeginOfPlayersNextEndStepDelayedTriggeredAbility(
|
||||||
new SacrificeTargetEffect("sacrifice it")
|
new SacrificeTargetEffect("sacrifice it")
|
||||||
.setTargetPointer(new FixedTarget(creature, game)),
|
.setTargetPointer(new FixedTarget(creature, game)),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue