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

Method getSignatureSpell

forge-core/src/main/java/forge/deck/Deck.java:166–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 return null;
165 }
166 public PaperCard getSignatureSpell() {
167 final CardPool cp = get(DeckSection.Commander);
168 if (cp == null) {
169 return null;
170 }
171 for (final Entry<PaperCard, Integer> c : cp) {
172 PaperCard card = c.getKey();
173 if (card.getRules().canBeSignatureSpell()) {
174 return card;
175 }
176 }
177 return null;
178 }
179
180 // may return nulls
181 public CardPool get(DeckSection deckSection) {

Callers 2

setSignatureSpellMethod · 0.80

Calls 4

getMethod · 0.95
getRulesMethod · 0.95
getKeyMethod · 0.45
canBeSignatureSpellMethod · 0.45

Tested by

no test coverage detected