- Fixed Scry AI scrying away basic lands thinking that they do not produce mana since they do not use a mana-producing SA as such and rely on the basic land type instead.

git-svn-id: http://svn.slightlymagic.net/forge/trunk@35720 269b9781-a132-4a9b-9d4e-f004f1b56b58
This commit is contained in:
Agetian 2017-09-23 11:16:58 +00:00
parent 5e7442af9d
commit 5991c8f51c
2 changed files with 11 additions and 1 deletions

View File

@ -1896,7 +1896,8 @@ public class ComputerUtil {
int numCards = allCreatures.size();
if (landsOTB.size() < maxLandsToScryLandsToTop && landsInHand.isEmpty()) {
if ((!c.isLand() && !manaArts.contains(c.getName())) || c.getManaAbilities().isEmpty()) {
if ((!c.isLand() && !manaArts.contains(c.getName()))
|| (c.getManaAbilities().isEmpty() && !c.hasABasicLandType())) {
// scry away non-lands and non-manaproducing lands in situations when the land count
// on the battlefield is low, to try to improve the mana base early
bottom = true;

View File

@ -4128,6 +4128,15 @@ public class Card extends GameEntity implements Comparable<Card> {
return false;
}
public final boolean hasABasicLandType() {
for (final String type : getType().getSubtypes()) {
if (forge.card.CardType.isABasicLandType(type)) {
return true;
}
}
return false;
}
public final boolean isUsedToPay() {
return usedToPayCost;
}