fixed bug in no turn state with double next color itteration
This commit is contained in:
		@@ -25,7 +25,7 @@ public NoTurnState(ChoosePieceState choosePieceAutomaton, ServerGameLogic logic)
 | 
			
		||||
    private void setActivePlayer(Color color) {
 | 
			
		||||
        if (!logic.getGame().getPlayerByColor(color.next(logic.getGame())).isFinished()) {
 | 
			
		||||
            logic.getGame().setActiveColor(logic.getGame().getActiveColor().next(logic.getGame()));
 | 
			
		||||
            logic.getServerSender().broadcast(new ActivePlayerMessage(color.next(logic.getGame())));
 | 
			
		||||
            logic.getServerSender().broadcast(new ActivePlayerMessage(logic.getGame().getActiveColor()));
 | 
			
		||||
        } else {
 | 
			
		||||
            setActivePlayer(color.next(logic.getGame()));
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user