Skip to content

Commit

Permalink
correct shield counting as weapon for DEF based damage
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrgard committed Aug 27, 2018
1 parent 39730a0 commit 5624f09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/builder/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,10 @@ function calculateStatValue(itemAndPassives, stat, unitBuild) {
return result;
} else {
var result = {"right":0,"left":0,"total":Math.floor(calculatedValue),"bonusPercent":currentPercentIncrease.value};
if (itemAndPassives[0]) {
if (itemAndPassives[0] && weaponList.includes(itemAndPassives[0].type)) {
result.right = result.total;
}
if (itemAndPassives[1]) {
if (itemAndPassives[1] && weaponList.includes(itemAndPassives[1].type)) {
result.left = result.total;
}
return result;
Expand Down

0 comments on commit 5624f09

Please sign in to comment.