* Fixed card movement handling.

This commit is contained in:
LevelX2 2020-01-10 08:53:35 +01:00
parent 66651bc500
commit 766c4f8bf6

View file

@ -108,15 +108,13 @@ public class ExploreSourceEffect extends OneShotEffect {
cardWasRevealed = true; cardWasRevealed = true;
if (card != null) { if (card != null) {
if (card.isLand()) { if (card.isLand()) {
permanentController.moveCardToHandWithInfo(card, source.getSourceId(), game); permanentController.moveCards(card, Zone.HAND, source, game);
card.moveToZone(Zone.HAND, source.getSourceId(), game, true);
} else { } else {
if (game.getState().getZone(permanentId) == Zone.BATTLEFIELD) { // needed in case LKI object is used if (game.getState().getZone(permanentId) == Zone.BATTLEFIELD) { // needed in case LKI object is used
permanent.addCounters(CounterType.P1P1.createInstance(), source, game); permanent.addCounters(CounterType.P1P1.createInstance(), source, game);
} }
if (permanentController.chooseUse(Outcome.Neutral, "Put " + card.getLogName() + " in your graveyard?", source, game)) { if (permanentController.chooseUse(Outcome.Neutral, "Put " + card.getLogName() + " in your graveyard?", source, game)) {
card.moveToZone(Zone.GRAVEYARD, source.getSourceId(), game, true); permanentController.moveCards(card, Zone.GRAVEYARD, source, game);
game.informPlayers(permanentController.getLogName() + " puts " + card.getLogName() + " into their graveyard.");
} else { } else {
game.informPlayers(permanentController.getLogName() + " leaves " + card.getLogName() + " on top of their library."); game.informPlayers(permanentController.getLogName() + " leaves " + card.getLogName() + " on top of their library.");
} }