mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-12-21 07:16:52 +01:00
- 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:
parent
d35831d328
commit
767c255a9c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user