- If a counterspell can't be cast (Meddling Mage, ...), the AI shouldn't be able to cast it either.

This commit is contained in:
jendave
2011-08-06 04:24:24 +00:00
parent c822a733f9
commit dbac93a5c7

View File

@@ -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;