- Don't hold land drops till main 2 if playing with the Momir avatar (Momir Basic, MoJhoSto, etc.), otherwise it messes with the AI strategy for activating the avatar.

This commit is contained in:
Agetian
2018-04-12 08:41:56 +03:00
parent 333ba13869
commit b54403163d

View File

@@ -1180,6 +1180,13 @@ public class AiController {
} }
private boolean isSafeToHoldLandDropForMain2(Card landToPlay) { private boolean isSafeToHoldLandDropForMain2(Card landToPlay) {
boolean hasMomir = !CardLists.filter(player.getCardsIn(ZoneType.Command),
CardPredicates.nameEquals("Momir Vig, Simic Visionary Avatar")).isEmpty();
if (hasMomir) {
// Don't do this in Momir variants since it messes with the AI decision making for the avatar.
return false;
}
if (!MyRandom.percentTrue(getIntProperty(AiProps.HOLD_LAND_DROP_FOR_MAIN2_IF_UNUSED))) { if (!MyRandom.percentTrue(getIntProperty(AiProps.HOLD_LAND_DROP_FOR_MAIN2_IF_UNUSED))) {
// check against the chance specified in the profile // check against the chance specified in the profile
return false; return false;