- Cavern of Souls AI: do not try to pay with the SA the card for which was already tapped, for this cost or for something else.

git-svn-id: http://svn.slightlymagic.net/forge/trunk@35729 269b9781-a132-4a9b-9d4e-f004f1b56b58
This commit is contained in:
Agetian 2017-09-23 14:12:48 +00:00
parent 527ded8a2f
commit 065f4194bb

View File

@ -244,12 +244,14 @@ public class ComputerUtilMana {
} else if (toPay == ManaCostShard.GENERIC || toPay == ManaCostShard.X) {
for (SpellAbility ab : saList) {
if (ab.isManaAbility() && ab.getManaPart().isAnyMana() && ab.hasParam("AddsNoCounter")) {
if (!ab.getHostCard().isTapped()) {
paymentChoice = ab;
break;
}
}
}
}
}
final String typeRes = cost.getSourceRestriction();
if (StringUtils.isNotBlank(typeRes) && !paymentChoice.getHostCard().getType().hasStringType(typeRes)) {