- Max AI planar die rolls now correctly check for the number of planar die rolls instead of spell ability activations.

This commit is contained in:
Agetian
2013-07-04 14:36:02 +00:00
parent 3eac899af5
commit eb1234832e

View File

@@ -47,7 +47,7 @@ public class RollPlanarDiceAi extends SpellAbilityAi {
if (plane.hasSVar("AIHintRollDieMaxPerTurn")) {
maxActivations = Integer.parseInt(plane.getSVar("AIHintRollDieMaxPerTurn"));
}
if (sa.getActivationsThisTurn() >= maxActivations) {
if (ai.getGame().getPhaseHandler().getPlanarDiceRolledthisTurn() >= maxActivations) {
decideToRoll = false;
}