mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
- Fixed a bug with "May be played by your opponent".
This commit is contained in:
@@ -190,7 +190,8 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
|||||||
// Not a Spell, or on Battlefield, return false
|
// Not a Spell, or on Battlefield, return false
|
||||||
if (!sa.isSpell() || cardZone.is(ZoneType.Battlefield) || !this.getZone().equals(ZoneType.Hand)) {
|
if (!sa.isSpell() || cardZone.is(ZoneType.Battlefield) || !this.getZone().equals(ZoneType.Hand)) {
|
||||||
return false;
|
return false;
|
||||||
} else if (!c.hasKeyword("May be played") && !c.hasKeyword("May be played by your opponent")) {
|
} 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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1183,7 +1183,7 @@ public class ComputerUtil {
|
|||||||
|
|
||||||
final CardList lands = computer.getCardsIn(ZoneType.Graveyard);
|
final CardList lands = computer.getCardsIn(ZoneType.Graveyard);
|
||||||
for (final Card crd : lands) {
|
for (final Card crd : lands) {
|
||||||
if (crd.isLand() && crd.hasStartOfKeyword("May be played")) {
|
if (crd.isLand() && crd.hasKeyword("May be played")) {
|
||||||
landList.add(crd);
|
landList.add(crd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user