Fixing the preparation state of a game for before playing starting fellowship. Also game in "Preparation" can now be watched.
This commit is contained in:
@@ -79,7 +79,8 @@ public class LotroGameMediator {
|
||||
public String getGameStatus() {
|
||||
if (_lotroGame.getWinnerPlayerId() != null)
|
||||
return "Finished";
|
||||
if (_lotroGame.getGameState().getCurrentPhase() == Phase.PLAY_STARTING_FELLOWSHIP)
|
||||
final Phase currentPhase = _lotroGame.getGameState().getCurrentPhase();
|
||||
if (currentPhase == Phase.PLAY_STARTING_FELLOWSHIP || currentPhase == Phase.PUT_RING_BEARER)
|
||||
return "Preparation";
|
||||
return "Playing";
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ var GempLotrHallUI = Class.extend({
|
||||
}
|
||||
}
|
||||
|
||||
if (status == "Playing") {
|
||||
if (status == "Playing" || status == "Preparation") {
|
||||
var but = $("<button>Watch game</button>");
|
||||
$(but).button().click(
|
||||
function(event) {
|
||||
|
||||
Reference in New Issue
Block a user