- ExploreAi: honor the DoNotDiscardIfAble SVar.

This commit is contained in:
Agetian
2017-09-25 08:06:14 +00:00
parent fce6807a3b
commit d685997040

View File

@@ -38,7 +38,7 @@ public class ExploreAi extends SpellAbilityAi {
// We need more lands to improve our mana base, explore away the non-lands // We need more lands to improve our mana base, explore away the non-lands
return topCard; return topCard;
} }
if (topCard.getCMC() - maxCMCDiff >= predictedMana) { if (topCard.getCMC() - maxCMCDiff >= predictedMana && !topCard.hasSVar("DoNotDiscardIfAble")) {
// We're not casting this in foreseeable future, put it in the graveyard // We're not casting this in foreseeable future, put it in the graveyard
return topCard; return topCard;
} }