mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Improved Mulligan AI: It will now ship hands of five cards without any lands.
This commit is contained in:
@@ -1452,7 +1452,7 @@ public class ComputerUtil {
|
||||
final AiController aic = ((PlayerControllerAi)ai.getController()).getAi();
|
||||
|
||||
// don't mulligan when already too low
|
||||
if (handList.size() <= aic.getIntProperty(AiProps.MULLIGAN_THRESHOLD)) {
|
||||
if (handList.size() < aic.getIntProperty(AiProps.MULLIGAN_THRESHOLD)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1466,6 +1466,11 @@ public class ComputerUtil {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
// mulligan when at the threshold, with a no land hand
|
||||
if (handList.size() == aic.getIntProperty(AiProps.MULLIGAN_THRESHOLD) && lands.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return lands.size() < 2 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user