- Tweaked untargeted pumping AI.

This commit is contained in:
Sloth
2012-02-28 19:18:31 +00:00
parent 3b203200e0
commit 4298052447

View File

@@ -581,7 +581,6 @@ public class AbilityFactoryPump {
// when this happens we need to expand AI to consider if its ok for // when this happens we need to expand AI to consider if its ok for
// everything? // everything?
for (final Card card : cards) { for (final Card card : cards) {
if (this.abilityFactory.isCurse()) { if (this.abilityFactory.isCurse()) {
if (card.getController().isComputer()) { if (card.getController().isComputer()) {
return false; return false;
@@ -591,14 +590,14 @@ public class AbilityFactoryPump {
continue; continue;
} }
break; return r.nextFloat() <= Math.pow(.6667, activations);
} }
if (shouldPumpCard(sa, card)) { if (shouldPumpCard(sa, card)) {
break;
}
}
return r.nextFloat() <= Math.pow(.6667, activations); return r.nextFloat() <= Math.pow(.6667, activations);
} }
}
return false;
}
//Targeted //Targeted
return this.pumpTgtAI(sa, defense, attack, false); return this.pumpTgtAI(sa, defense, attack, false);
} // pumpPlayAI() } // pumpPlayAI()