mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- 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.
This commit is contained in:
@@ -1896,7 +1896,8 @@ public class ComputerUtil {
|
|||||||
int numCards = allCreatures.size();
|
int numCards = allCreatures.size();
|
||||||
|
|
||||||
if (landsOTB.size() < maxLandsToScryLandsToTop && landsInHand.isEmpty()) {
|
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
|
// 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
|
// on the battlefield is low, to try to improve the mana base early
|
||||||
bottom = true;
|
bottom = true;
|
||||||
|
|||||||
@@ -4128,6 +4128,15 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
return false;
|
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() {
|
public final boolean isUsedToPay() {
|
||||||
return usedToPayCost;
|
return usedToPayCost;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user