mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Prevent AI from casting spells with "May be played" from the Stack.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user