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

Method setTopLibsCast

forge-game/src/main/java/forge/game/Game.java:1358–1362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1356 return topLibsCast.get(P);
1357 }
1358 public void setTopLibsCast() {
1359 for (Player p : getPlayers()) {
1360 topLibsCast.put(p, p.getTopXCardsFromLibrary(1).isEmpty() ? null : p.getTopXCardsFromLibrary(1).get(0));
1361 }
1362 }
1363 public void clearTopLibsCast(SpellAbility sa) {
1364 // if nothing left to pay
1365 if (sa.getActivatingPlayer().getPaidForSA() == null) {

Callers 1

playAbilityMethod · 0.95

Calls 5

getPlayersMethod · 0.95
isEmptyMethod · 0.65
getMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected