mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
Merge fix
This commit is contained in:
parent
06138ab3d3
commit
f42f28344c
1 changed files with 1 additions and 2 deletions
|
|
@ -30,13 +30,11 @@ public class SimulatedPlayer extends ComputerPlayer {
|
||||||
private static final Logger logger = Logger.getLogger(SimulatedPlayer.class);
|
private static final Logger logger = Logger.getLogger(SimulatedPlayer.class);
|
||||||
private boolean isSimulatedPlayer;
|
private boolean isSimulatedPlayer;
|
||||||
private transient ConcurrentLinkedQueue<Ability> allActions;
|
private transient ConcurrentLinkedQueue<Ability> allActions;
|
||||||
private static PassAbility pass = new PassAbility();
|
|
||||||
protected int maxDepth;
|
protected int maxDepth;
|
||||||
|
|
||||||
public SimulatedPlayer(Player originalPlayer, boolean isSimulatedPlayer, int maxDepth) {
|
public SimulatedPlayer(Player originalPlayer, boolean isSimulatedPlayer, int maxDepth) {
|
||||||
super(originalPlayer.getId());
|
super(originalPlayer.getId());
|
||||||
this.maxDepth = maxDepth;
|
this.maxDepth = maxDepth;
|
||||||
pass.setControllerId(playerId);
|
|
||||||
this.isSimulatedPlayer = isSimulatedPlayer;
|
this.isSimulatedPlayer = isSimulatedPlayer;
|
||||||
this.matchPlayer = new MatchPlayer(originalPlayer.getMatchPlayer(), this);
|
this.matchPlayer = new MatchPlayer(originalPlayer.getMatchPlayer(), this);
|
||||||
}
|
}
|
||||||
|
|
@ -55,6 +53,7 @@ public class SimulatedPlayer extends ComputerPlayer {
|
||||||
allActions = new ConcurrentLinkedQueue<>();
|
allActions = new ConcurrentLinkedQueue<>();
|
||||||
Game sim = game.copy();
|
Game sim = game.copy();
|
||||||
|
|
||||||
|
ActivatedAbility pass = new PassAbility();
|
||||||
simulateOptions(sim, pass);
|
simulateOptions(sim, pass);
|
||||||
|
|
||||||
List<Ability> list = new ArrayList<>(allActions);
|
List<Ability> list = new ArrayList<>(allActions);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue