- ExploreAi: honor the DoNotDiscardIfAble SVar.

git-svn-id: http://svn.slightlymagic.net/forge/trunk@35760 269b9781-a132-4a9b-9d4e-f004f1b56b58
This commit is contained in:
Agetian 2017-09-25 08:06:14 +00:00
parent d35831d328
commit 767c255a9c

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
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
return topCard;
}