mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
* Fixed card movement handling.
This commit is contained in:
parent
66651bc500
commit
766c4f8bf6
1 changed files with 2 additions and 4 deletions
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue