Fixed Issue#39: Vile Rebirth or Revive always fizzles when cast by AI

This commit is contained in:
magenoxx 2012-08-31 14:31:13 +04:00
parent f1f2d7640f
commit 1454cbb3c8

View file

@ -103,7 +103,7 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
public ComputerPlayer6(String name, RangeOfInfluence range, int skill) {
super(name, range);
maxDepth = skill * 2;
maxThink = skill * 300;
maxThink = skill * 3;
maxNodes = Config2.maxNodes;
getSuggestedActions();
this.actionCache = new HashSet<String>();
@ -423,6 +423,7 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
});
pool.execute(task);
try {
System.out.println("maxThink:" + maxThink);
return task.get(maxThink, TimeUnit.SECONDS);
} catch (TimeoutException e) {
logger.info("simulating - timed out");