From d685997040a6dc8fe44ff9dc4faed25f0ba077f5 Mon Sep 17 00:00:00 2001 From: Agetian Date: Mon, 25 Sep 2017 08:06:14 +0000 Subject: [PATCH] - ExploreAi: honor the DoNotDiscardIfAble SVar. --- forge-ai/src/main/java/forge/ai/ability/ExploreAi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge-ai/src/main/java/forge/ai/ability/ExploreAi.java b/forge-ai/src/main/java/forge/ai/ability/ExploreAi.java index f56157eb4c7..4d39f6f6ae7 100644 --- a/forge-ai/src/main/java/forge/ai/ability/ExploreAi.java +++ b/forge-ai/src/main/java/forge/ai/ability/ExploreAi.java @@ -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; }