mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
commit
c01cfd7ffc
2 changed files with 10 additions and 1 deletions
|
@ -317,8 +317,17 @@ public class GameController implements GameCallback {
|
|||
for (final Entry<UUID, GameSessionPlayer> entry : gameSessions.entrySet()) {
|
||||
entry.getValue().init();
|
||||
}
|
||||
|
||||
GameWorker worker = new GameWorker(game, choosingPlayerId, this);
|
||||
gameFuture = gameExecutor.submit(worker);
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
if (game.getState().getChoosingPlayerId() != null) {
|
||||
// start timer to force player to choose starting player otherwise loosing by being idle
|
||||
setupTimeout(game.getState().getChoosingPlayerId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1948,7 +1948,7 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
Player controller = this.getPlayer(planeswalker.getControllerId());
|
||||
if (controller != null) {
|
||||
Target targetPlaneswalkerToKeep = new TargetPermanent(filterPlaneswalker);
|
||||
targetPlaneswalkerToKeep.setTargetName(planeswalker.getName() + " to keep?");
|
||||
targetPlaneswalkerToKeep.setTargetName(planeswalkertype.toString() + " to keep?");
|
||||
controller.chooseTarget(Outcome.Benefit, targetPlaneswalkerToKeep, null, this);
|
||||
for (Permanent dupPlaneswalker : this.getBattlefield().getActivePermanents(filterPlaneswalker, planeswalker.getControllerId(), this)) {
|
||||
if (!targetPlaneswalkerToKeep.getTargets().contains(dupPlaneswalker.getId())) {
|
||||
|
|
Loading…
Reference in a new issue