|
@@ -78,7 +78,8 @@ public class DDClass {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public List<DDProperty> getFeatures(int level) {
|
|
public List<DDProperty> getFeatures(int level) {
|
|
|
- return features.size() > level ? Collections.unmodifiableList(features.get(level)) : Collections.emptyList();
|
|
|
|
|
|
|
+ return features.size() < level ? Collections.emptyList() :
|
|
|
|
|
+ Collections.unmodifiableList(features.get(level-1));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Optional<DDSpellbook> createNewSpellBook() {
|
|
public Optional<DDSpellbook> createNewSpellBook() {
|