Skip to content

Commit

Permalink
Merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JayDi85 committed Oct 14, 2023
1 parent 06138ab commit f42f283
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -55,6 +53,7 @@ public List<Ability> simulatePriority(Game game) {
allActions = new ConcurrentLinkedQueue<>();
Game sim = game.copy();

ActivatedAbility pass = new PassAbility();
simulateOptions(sim, pass);

List<Ability> list = new ArrayList<>(allActions);
Expand Down

0 comments on commit f42f283

Please sign in to comment.