Tweak logic for Nine-Fingers Keene vs. Duelist's Heritage

This commit is contained in:
tool4EvEr
2023-03-29 21:47:41 +02:00
parent 06059fb986
commit 788c655802

View File

@@ -796,6 +796,10 @@ public class ComputerUtilCost {
if (toBeCountered.isSpell() && !CardFactoryUtil.isCounterable(toBeCountered.getHostCard())) {
return false;
}
// no reason to pay if we don't plan to confirm
if (toBeCountered.isOptionalTrigger() && !SpellApiToAi.Converter.get(toBeCountered.getApi()).doTriggerNoCostWithSubs(payer, toBeCountered, false)) {
return false;
}
// TODO check hasFizzled
}
}