mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
* Fixed a bug that winning with alternate win condition (e.g. Biovisionary) did not set game end date. That leads to a NPE in client.
This commit is contained in:
parent
484a4fe0f6
commit
f0e8041906
3 changed files with 80 additions and 2 deletions
|
|
@ -459,7 +459,6 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
player.won(this);
|
||||
}
|
||||
}
|
||||
endTime = new Date();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
@ -869,6 +868,7 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
@Override
|
||||
public void end() {
|
||||
if (!state.isGameOver()) {
|
||||
endTime = new Date();
|
||||
state.endGame();
|
||||
for (Player player: state.getPlayers().values()) {
|
||||
player.abort();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue