Skip to content

Commit

Permalink
level is not an index
Browse files Browse the repository at this point in the history
  • Loading branch information
NeumimTo committed Jan 13, 2019
1 parent f2d499d commit cfb5f13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void add(IActiveCharacter character, int i, BiFunction<Integer, Integer,
PropertySkillData skillData = (PropertySkillData) skill.getSkillData();
for (Wrapper property : skillData.properties) {
if (fc.apply(property.level, skill.getTotalLevel())) {
character.addProperty(property.level, property.value * i);
character.addProperty(property.propertyId, property.value * i);
if (property.propertyId == DefaultProperties.max_health) {
characterService.updateMaxHealth(character);
} else if (property.propertyId == DefaultProperties.walk_speed) {
Expand Down

0 comments on commit cfb5f13

Please sign in to comment.