From e44d8482af3cc2e16009847be04fa7146e9064a3 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Sun, 6 Mar 2011 02:18:28 +0300 Subject: [PATCH] Applied AI fix to ComputerPlayer6. --- .../src/mage/player/ai/ComputerPlayer6.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Mage.Server.Plugins/Mage.Player.AI.MA/src/mage/player/ai/ComputerPlayer6.java b/Mage.Server.Plugins/Mage.Player.AI.MA/src/mage/player/ai/ComputerPlayer6.java index ed298bbd01..89815a2ac0 100644 --- a/Mage.Server.Plugins/Mage.Player.AI.MA/src/mage/player/ai/ComputerPlayer6.java +++ b/Mage.Server.Plugins/Mage.Player.AI.MA/src/mage/player/ai/ComputerPlayer6.java @@ -452,6 +452,11 @@ public class ComputerPlayer6 extends ComputerPlayer implements List allActions = currentPlayer.simulatePriority(game, filter); logger.debug("simulating -- adding " + allActions.size() + " children:" + allActions); for (Ability action: allActions) { + if (Thread.interrupted()) { + Thread.currentThread().interrupt(); + logger.debug("interrupted"); + break; + } Game sim = game.copy(); if (sim.getPlayer(currentPlayer.getId()).activateAbility((ActivatedAbility) action.copy(), sim)) { sim.applyEffects();