* Fixed a problem that the AI did not care for maximum allowed mana payment for X mana costs.

This commit is contained in:
LevelX2 2018-03-12 16:33:42 +01:00
parent dc3e47e045
commit b7fa942b10
2 changed files with 8 additions and 6 deletions

View file

@ -1312,6 +1312,9 @@ public class ComputerPlayer extends PlayerImpl implements Player {
if (numAvailable < 0) {
numAvailable = 0;
}
if (numAvailable > max) {
numAvailable = max;
}
return numAvailable;
}