mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Prevent the AI from cheating with Cavern of Souls, paying an arbitrary amount of mana with it.
This commit is contained in:
@@ -226,7 +226,9 @@ public class ComputerUtilMana {
|
||||
&& sa.getHostCard().getType().getCreatureTypes().contains(ma.getHostCard().getChosenType())) {
|
||||
for (SpellAbility ab : saList) {
|
||||
if (ab.isManaAbility() && ab.getManaPart().isAnyMana() && ab.hasParam("AddsNoCounter")) {
|
||||
return ab;
|
||||
if (canPayShardWithSpellAbility(toPay, ai, ma, sa, checkCosts)) {
|
||||
return ab;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user