<BUG>logger.debug("simulating pre combat actions -----------------------------------------------------------------------------------------");addActionsTimed(new FilterAbility());if (root.children.size() > 0) {</BUG><CONTEXT>if (!getNextAction(game)) {currentScore = GameStateEvaluator.evaluate(playerId, game);Game sim = createSimulation(game);SimulationNode.resetCount();root = new SimulationNode(null, sim, playerId);<extra_id_0>root = root.children.get(0);actions = new LinkedList<Ability>(root.abilities);</CONTEXT>
if (!isTestMode)elseaddActions(root, new FilterAbility(), Integer.MIN_VALUE, Integer.MAX_VALUE);if (root.children.size() > 0) {