mirror of
https://github.com/correl/mage.git
synced 2025-04-08 09:11:04 -09:00
* Some minor changes.
This commit is contained in:
parent
792e1e19a0
commit
6598e6cc7f
1 changed files with 5 additions and 2 deletions
|
@ -909,8 +909,11 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
} else {
|
||||
TargetCard target = new TargetCard(Zone.LIBRARY, new FilterCard("card to put on the top of your library (last one chosen will be topmost)"));
|
||||
target.setRequired(true);
|
||||
while (isInGame() && cards.size() > 1) {
|
||||
while (cards.size() > 1) {
|
||||
this.choose(Outcome.Neutral, cards, target, game);
|
||||
if (!canRespond()) {
|
||||
return false;
|
||||
}
|
||||
UUID targetObjectId = target.getFirstTarget();
|
||||
cards.remove(targetObjectId);
|
||||
moveObjectToLibrary(targetObjectId, sourceId, game, true, false);
|
||||
|
@ -2222,7 +2225,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
|
||||
@Override
|
||||
public boolean canRespond() { // abort is checked here to get out of player requests
|
||||
return !hasQuit() && !hasLost() && !hasWon() && !hasLeft() && !abort;
|
||||
return isInGame() && !abort;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue