MCPcopy Create free account
hub / github.com/Card-Forge/forge / isGraveyardOrdered

Method isGraveyardOrdered

forge-game/src/main/java/forge/game/Game.java:1167–1182  ·  view source on GitHub ↗
(final Player p)

Source from the content-addressed store, hash-verified

1165
1166 // Does the player control any cards that care about the order of cards in the graveyard?
1167 public boolean isGraveyardOrdered(final Player p) {
1168 for (Card c : p.getAllCards()) {
1169 if (c.hasSVar("NeedsOrderedGraveyard")) {
1170 return true;
1171 } else if (c.getOriginalState(CardStateName.Original).hasSVar("NeedsOrderedGraveyard")) {
1172 return true;
1173 }
1174 }
1175 for (Card c : p.getOpponents().getCardsIn(ZoneType.Battlefield)) {
1176 // Bone Dancer is important when an opponent has it active on the battlefield
1177 if ("opponent".equalsIgnoreCase(c.getSVar("NeedsOrderedGraveyard"))) {
1178 return true;
1179 }
1180 }
1181 return false;
1182 }
1183
1184 public Player getControlVote() {
1185 Player result = null;

Callers 1

orderMoveToZoneListMethod · 0.80

Calls 6

getOriginalStateMethod · 0.80
getAllCardsMethod · 0.65
hasSVarMethod · 0.65
getSVarMethod · 0.65
getCardsInMethod · 0.45
getOpponentsMethod · 0.45

Tested by

no test coverage detected