(PlayerCharacter pc, Skill sk)
| 165 | } |
| 166 | |
| 167 | @Override |
| 168 | public boolean allow(PlayerCharacter pc, Skill sk) |
| 169 | { |
| 170 | float pcRanks = pc.getDisplay().getRank(sk); |
| 171 | if (maxRank) |
| 172 | { |
| 173 | /* |
| 174 | * According to SkillRankControl any class can be used here |
| 175 | * (confusing!) |
| 176 | */ |
| 177 | double maxRanks = pc.getMaxRank(sk, pc.getClassList().get(0)).doubleValue(); |
| 178 | return maxRanks <= pcRanks; |
| 179 | } |
| 180 | return ranks <= pcRanks; |
| 181 | } |
| 182 | } |
nothing calls this directly
no test coverage detected