Changes to try and better handle X mana costs with minimum X values with AI decisions #4906

This commit is contained in:
Michael Simons 2018-06-03 22:47:56 -04:00
parent 0bf78830de
commit de9042dafe

View file

@ -132,7 +132,7 @@ public class SimulatedPlayer2 extends ComputerPlayer {
if (variableManaCost != null) { if (variableManaCost != null) {
int multiplier = variableManaCost.getMultiplier(); int multiplier = variableManaCost.getMultiplier();
for (int mana = 0; mana <= numAvailable; mana++) { for (int mana = variableManaCost.getMinX(); mana <= numAvailable; mana++) {
if (mana % multiplier == 0) { // use only values dependant from muliplier if (mana % multiplier == 0) { // use only values dependant from muliplier
int xAmount = mana / multiplier; int xAmount = mana / multiplier;
Ability newAbility = ability.copy(); Ability newAbility = ability.copy();