mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-11-14 04:17:19 +01: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.
git-svn-id: http://svn.slightlymagic.net/forge/trunk@35720 269b9781-a132-4a9b-9d4e-f004f1b56b58
This commit is contained in:
parent
5e7442af9d
commit
5991c8f51c
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user