mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
Changes to try and better handle X mana costs with minimum X values with AI decisions #4906
This commit is contained in:
parent
0bf78830de
commit
de9042dafe
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ public class SimulatedPlayer2 extends ComputerPlayer {
|
|||
if (variableManaCost != null) {
|
||||
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
|
||||
int xAmount = mana / multiplier;
|
||||
Ability newAbility = ability.copy();
|
||||
|
|
Loading…
Reference in a new issue