mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- ExploreAi: honor the DoNotDiscardIfAble SVar.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user