mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
* Fixed a problem that the AI did not care for maximum allowed mana payment for X mana costs.
This commit is contained in:
parent
dc3e47e045
commit
b7fa942b10
2 changed files with 8 additions and 6 deletions
|
|
@ -1312,6 +1312,9 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
if (numAvailable < 0) {
|
||||
numAvailable = 0;
|
||||
}
|
||||
if (numAvailable > max) {
|
||||
numAvailable = max;
|
||||
}
|
||||
return numAvailable;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue