mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
Game: fixed NPE on draft auto-pickup on timeout
This commit is contained in:
parent
66d0ef4b35
commit
fe073bba0b
1 changed files with 3 additions and 1 deletions
|
@ -159,7 +159,9 @@ public abstract class DraftImpl implements Draft {
|
|||
@Override
|
||||
public void autoPick(UUID playerId) {
|
||||
List<Card> booster = players.get(playerId).getBooster();
|
||||
this.addPick(playerId, booster.get(booster.size()-1).getId(), null);
|
||||
if (booster.size() > 0) {
|
||||
this.addPick(playerId, booster.get(booster.size() - 1).getId(), null);
|
||||
}
|
||||
}
|
||||
|
||||
protected void passBoosterToLeft() {
|
||||
|
|
Loading…
Reference in a new issue