player.setDone(ready);
}
}
private void receiveInitiativeRerollRequest(Packet pkt, int connIndex) {
Player player = getPlayer(connIndex);
if (IGame.Phase.PHASE_INITIATIVE_REPORT != game.getPhase()) {
StringBuffer message = new StringBuffer();
if (null == player) {
message.append("Player #").append(connIndex);
} else {
message.append(player.getName());
}
message.append(" is not allowed to ask for a reroll at this time.");
System.err.println(message.toString());
sendServerChat(message.toString());
return;
}
if (game.hasTacticalGenius(player)) {
game.addInitiativeRerollRequest(game.getTeamForPlayer(player));
}
if (null != player) {
player.setDone(true);
}
checkReady();
}