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

Method allow

code/src/java/plugin/qualifier/skill/ClassToken.java:135–147  ·  view source on GitHub ↗
(PlayerCharacter pc, Skill sk)

Source from the content-addressed store, hash-verified

133 }
134
135 @Override
136 public boolean allow(PlayerCharacter pc, Skill sk)
137 {
138 Collection<PCClass> classlist = pc.getClassSet();
139 for (PCClass cl : classlist)
140 {
141 if (pc.isClassSkill(cl, sk))
142 {
143 return true;
144 }
145 }
146 return false;
147 }
148}

Callers

nothing calls this directly

Calls 2

getClassSetMethod · 0.45
isClassSkillMethod · 0.45

Tested by

no test coverage detected