forked from External/mage
Remove explicit set of required property in constructor
This commit is contained in:
parent
250909a464
commit
0a0983d7e9
2272 changed files with 2454 additions and 2538 deletions
|
|
@ -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 ability’s 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue