Skip to content

Commit

Permalink
fixing armor not being calculated properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ToppleTheNun committed Feb 6, 2016
1 parent bd2ca53 commit 261677c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/info/faceland/strife/data/Champion.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ public Map<StrifeAttribute, Double> getArmorAttributeValues() {
}
for (StrifeAttribute attr : StrifeAttribute.values()) {
double val = AttributeHandler.getValue(itemStack, attr);
double curVal = attributeDoubleMap.containsKey(attr) ? attributeDoubleMap.get(attr) : 0;
attributeDoubleMap.put(attr,
attr.getCap() > 0D ? Math.min(attr.getCap(), val) : val);
attr.getCap() > 0D ? Math.min(attr.getCap(), val + curVal) : val + curVal);
}
}
attributeArmorCache.putAll(attributeDoubleMap);
Expand Down

0 comments on commit 261677c

Please sign in to comment.