MCPcopy Create free account
hub / github.com/PCGen/pcgen / allow

Method allow

code/src/java/plugin/primitive/spell/ClassListToken.java:61–76  ·  view source on GitHub ↗
(PlayerCharacter pc, Spell spell)

Source from the content-addressed store, hash-verified

59 }
60
61 @Override
62 public boolean allow(PlayerCharacter pc, Spell spell)
63 {
64 ClassSpellList list = spelllist.get();
65 DataSetID datasetID = pc.getCharID().getDatasetID();
66
67 for (AvailableSpell availSpell : masterAvailableSpellFacet.getMatchingSpellsInList(list, datasetID, spell))
68 {
69 int level = availSpell.getLevel();
70 if (level >= 0 && allow(pc, level, "", spell, list))
71 {
72 return true;
73 }
74 }
75 return false;
76 }
77
78 @Override
79 public GroupingState getGroupingState()

Callers

nothing calls this directly

Calls 5

getDatasetIDMethod · 0.80
getMethod · 0.65
getCharIDMethod · 0.65
getLevelMethod · 0.45

Tested by

no test coverage detected