Remove explicit set of required property in constructor

This commit is contained in:
Quercitron 2014-06-13 15:15:16 +04:00
parent 250909a464
commit 0a0983d7e9
2272 changed files with 2454 additions and 2538 deletions

View file

@ -148,14 +148,16 @@ public class Modes extends LinkedHashMap<UUID, Mode> {
// If there is more than one other player who could make such a choice, the spell or abilitys controller decides which of those players will make the choice.
UUID playerId = null;
if (modeChooser == TargetController.OPPONENT) {
TargetOpponent targetOpponent = new TargetOpponent(true);
TargetOpponent targetOpponent = new TargetOpponent();
if (targetOpponent.choose(Outcome.Benefit, source.getControllerId(), source.getSourceId(), game)) {
playerId = targetOpponent.getFirstTarget();
}
}
if (playerId == null ) {
} else {
playerId = source.getControllerId();
}
if (playerId == null) {
return false;
}
Player player = game.getPlayer(playerId);
// player chooses modes manually