mirror of
https://github.com/correl/mage.git
synced 2024-11-25 11:09:53 +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) {
|
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();
|
||||||
|
|
Loading…
Reference in a new issue