mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Added 8 planes
This commit is contained in:
@@ -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")) {
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user