mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
minor rearrange of statements
This commit is contained in:
@@ -125,15 +125,14 @@ public class InputControl extends MyObservable implements java.io.Serializable {
|
||||
*/
|
||||
public final Input getActualInput(GameState game) {
|
||||
GameAge age = game.getAge();
|
||||
|
||||
if ( age == GameAge.BeforeMulligan || age == GameAge.GameOver)
|
||||
return inputLock;
|
||||
|
||||
if ( age == GameAge.Mulligan ) {
|
||||
HumanPlayer human = Singletons.getControl().getPlayer();
|
||||
return game.getType() == GameType.Commander ? new InputPartialParisMulligan(match, human) : new InputMulligan(match, human);
|
||||
}
|
||||
|
||||
if ( age != GameAge.Play )
|
||||
return inputLock;
|
||||
|
||||
if (!this.inputStack.isEmpty()) { // incoming input to Control
|
||||
return this.inputStack.peek();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user