forked from External/mage
Modified bidding evaluation for AI (Mages' Contest)
This commit is contained in:
parent
a45c7dd22f
commit
dca2ec174b
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ class MagesContestEffect extends OneShotEffect {
|
|||
int newBid = 0;
|
||||
if (!currentPlayer.isHuman()) {
|
||||
// make AI evaluate value of the spell to decide on bidding, should be reworked
|
||||
int maxBid = Math.min(RandomUtil.nextInt(currentPlayer.getLife()) + RandomUtil.nextInt(spell.getConvertedManaCost()), currentPlayer.getLife());
|
||||
int maxBid = Math.min(RandomUtil.nextInt(Math.max(currentPlayer.getLife(), 0)) + RandomUtil.nextInt(spell.getConvertedManaCost()), currentPlayer.getLife());
|
||||
if (highBid + 1 < maxBid) {
|
||||
newBid = highBid + 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue