diff --git a/common/script/statHelpers.js b/common/script/statHelpers.js index 005663d741..3e2ff7a785 100644 --- a/common/script/statHelpers.js +++ b/common/script/statHelpers.js @@ -40,7 +40,7 @@ function tnl (lvl) { */ function diminishingReturns (bonus, max, halfway) { - if (halfway === null) { + if (!halfway) { halfway = max / 2; } return max * (bonus / (bonus + halfway));