mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Fixed "May be played by your opponent" keyword.
This commit is contained in:
@@ -190,10 +190,14 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
||||
// Not a Spell, or on Battlefield, return false
|
||||
if (!sa.isSpell() || cardZone.is(ZoneType.Battlefield) || !this.getZone().equals(ZoneType.Hand)) {
|
||||
return false;
|
||||
} else if (!(c.hasKeyword("May be played") && cardZone.getPlayer().isPlayer(c.getController()))
|
||||
&& !(c.hasKeyword("May be played by your opponent") && !cardZone.getPlayer().isPlayer(c.getController()))) {
|
||||
return false;
|
||||
}
|
||||
if (c.hasKeyword("May be played") && cardZone.getPlayer().isPlayer(c.getController())) {
|
||||
return true;
|
||||
}
|
||||
if (c.hasKeyword("May be played by your opponent") && !cardZone.getPlayer().isPlayer(c.getController())) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user