mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- For cards like Restore Balance, Balance, etc., and for other cases where the AI uses getWorstLand/getWorstLandToAnimate, ensure that lands with negative initial score are still considered and picked by the AI (otherwise they're never picked even if the pick is mandatory).
This commit is contained in:
@@ -703,7 +703,7 @@ public class ComputerUtilCard {
|
||||
*/
|
||||
public static Card getWorstLand(final List<Card> lands) {
|
||||
Card worstLand = null;
|
||||
int maxScore = 0;
|
||||
int maxScore = Integer.MIN_VALUE;
|
||||
// first, check for tapped, basic lands
|
||||
for (Card tmp : lands) {
|
||||
int score = tmp.isTapped() ? 2 : 0;
|
||||
@@ -726,7 +726,7 @@ public class ComputerUtilCard {
|
||||
|
||||
public static Card getBestLandToAnimate(final Iterable<Card> lands) {
|
||||
Card land = null;
|
||||
int maxScore = 0;
|
||||
int maxScore = Integer.MIN_VALUE;
|
||||
// first, check for tapped, basic lands
|
||||
for (Card tmp : lands) {
|
||||
// TODO Improve this by choosing basic lands that I have plenty of mana in
|
||||
|
||||
Reference in New Issue
Block a user