- Fixed a bug with "May be played by your opponent".

This commit is contained in:
Sloth
2012-04-21 21:13:15 +00:00
parent d90c723dc6
commit 00e56cef46
2 changed files with 3 additions and 2 deletions

View File

@@ -190,7 +190,8 @@ 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") && !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;
}
}

View File

@@ -1183,7 +1183,7 @@ public class ComputerUtil {
final CardList lands = computer.getCardsIn(ZoneType.Graveyard);
for (final Card crd : lands) {
if (crd.isLand() && crd.hasStartOfKeyword("May be played")) {
if (crd.isLand() && crd.hasKeyword("May be played")) {
landList.add(crd);
}
}