- Prevent the AI from cheating with Cavern of Souls, paying an arbitrary amount of mana with it.

This commit is contained in:
Agetian
2017-08-14 04:50:22 +00:00
parent 14d5034b8e
commit 74b12606ef

View File

@@ -226,7 +226,9 @@ public class ComputerUtilMana {
&& sa.getHostCard().getType().getCreatureTypes().contains(ma.getHostCard().getChosenType())) { && sa.getHostCard().getType().getCreatureTypes().contains(ma.getHostCard().getChosenType())) {
for (SpellAbility ab : saList) { for (SpellAbility ab : saList) {
if (ab.isManaAbility() && ab.getManaPart().isAnyMana() && ab.hasParam("AddsNoCounter")) { if (ab.isManaAbility() && ab.getManaPart().isAnyMana() && ab.hasParam("AddsNoCounter")) {
return ab; if (canPayShardWithSpellAbility(toPay, ai, ma, sa, checkCosts)) {
return ab;
}
} }
} }
} }