From dbac93a5c79aa66ea9d830a0fd5554bc20f736d7 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 04:24:24 +0000 Subject: [PATCH] - If a counterspell can't be cast (Meddling Mage, ...), the AI shouldn't be able to cast it either. --- src/forge/ComputerAI_counterSpells2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forge/ComputerAI_counterSpells2.java b/src/forge/ComputerAI_counterSpells2.java index 1e6ff69e01d..4a61d5b385a 100644 --- a/src/forge/ComputerAI_counterSpells2.java +++ b/src/forge/ComputerAI_counterSpells2.java @@ -112,7 +112,7 @@ public class ComputerAI_counterSpells2 { { SpellAbility sa = c.getSpellAbility()[0]; - if (s.equals(c.getName()) && ComputerUtil.canPayCost(sa)) + if (s.equals(c.getName()) && ComputerUtil.canPayCost(sa) && !c.isUnCastable()) return true; } return false;