- Added 8 planes

This commit is contained in:
swordshine
2013-03-26 12:02:45 +00:00
parent 2eca4da809
commit 3264995f5c
12 changed files with 104 additions and 2 deletions

View File

@@ -6646,6 +6646,18 @@ public class Card extends GameEntity implements Comparable<Card> {
}
}
return false;
} else if (restriction.equals("EachTopLibrary")) {
final List<Card> list = new ArrayList<Card>();
for (Player p : Singletons.getModel().getGame().getPlayers()) {
final Card top = p.getCardsIn(ZoneType.Library).get(0);
list.add(top);
}
for (Card c : list) {
if (this.sharesCardTypeWith(c)) {
return true;
}
}
return false;
}
}
} else if (property.startsWith("sharesNameWith")) {

View File

@@ -404,7 +404,7 @@ public class CardDetailPanel extends FPanel {
if ((card.hasKeyword("Play with the top card of your library revealed.") || card
.hasKeyword("Players play with the top card of their libraries revealed."))
&& (card.getController() != null)
&& (card.isInZone(ZoneType.Battlefield) || (card.isType("Vanguard") && card.isInZone(ZoneType.Command)))
&& (card.isInZone(ZoneType.Battlefield) || ((card.isType("Vanguard") || card.isType("Plane")) && card.isInZone(ZoneType.Command)))
&& !card.getController().getZone(ZoneType.Library).isEmpty()) {
area.append("\r\nTop card of your library: ");
area.append(card.getController().getCardsIn(ZoneType.Library, 1));