mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -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 boolean isSimulatedPlayer;
|
||||
private transient ConcurrentLinkedQueue<Ability> allActions;
|
||||
private static PassAbility pass = new PassAbility();
|
||||
protected int maxDepth;
|
||||
|
||||
public SimulatedPlayer(Player originalPlayer, boolean isSimulatedPlayer, int maxDepth) {
|
||||
super(originalPlayer.getId());
|
||||
this.maxDepth = maxDepth;
|
||||
pass.setControllerId(playerId);
|
||||
this.isSimulatedPlayer = isSimulatedPlayer;
|
||||
this.matchPlayer = new MatchPlayer(originalPlayer.getMatchPlayer(), this);
|
||||
}
|
||||
|
|
@ -55,6 +53,7 @@ public class SimulatedPlayer extends ComputerPlayer {
|
|||
allActions = new ConcurrentLinkedQueue<>();
|
||||
Game sim = game.copy();
|
||||
|
||||
ActivatedAbility pass = new PassAbility();
|
||||
simulateOptions(sim, pass);
|
||||
|
||||
List<Ability> list = new ArrayList<>(allActions);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue