- Improved AI dealing with Immobilizing Ink.

This commit is contained in:
Sloth
2013-07-28 15:07:06 +00:00
parent d06d797ab1
commit 9ad1c5d2e7

View File

@@ -32,6 +32,10 @@ public class UntapAi extends SpellAbilityAi {
return false;
}
if (!ComputerUtilCost.checkDiscardCost(ai, cost, sa.getSourceCard())) {
return false;
}
final Random r = MyRandom.getRandom();
boolean randomReturn = r.nextFloat() <= Math.pow(.6667, sa.getActivationsThisTurn() + 1);