From 7d2643063f5ae5c93c1caca5aedbdc5c0043fc27 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Tue, 17 Nov 2015 16:00:18 -0500 Subject: [PATCH] fix(math-helpers): diminishingReturns parameter logic --- common/script/statHelpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));