- Prevent AI from casting spells with "May be played" from the Stack.

This commit is contained in:
Sloth
2014-11-09 09:21:08 +00:00
parent 9e87c08fe3
commit 2a97feb159

View File

@@ -210,6 +210,9 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|| !this.getZone().equals(ZoneType.Hand)) { || !this.getZone().equals(ZoneType.Hand)) {
return false; return false;
} }
if (cardZone.is(ZoneType.Stack)) {
return false;
}
if (c.hasKeyword("May be played") && activator.equals(c.getController())) { if (c.hasKeyword("May be played") && activator.equals(c.getController())) {
return true; return true;
} }