From d59cdfc6117bd50e8057d4250622707f4111bb76 Mon Sep 17 00:00:00 2001 From: hppeng Date: Tue, 5 Jul 2022 23:55:47 -0700 Subject: [PATCH] Fix raw stat bonus applying --- js/atree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/atree.js b/js/atree.js index ba72fca..b234ff4 100644 --- a/js/atree.js +++ b/js/atree.js @@ -561,7 +561,7 @@ const atree_stats = new (class extends ComputeNode { case 'raw_stat': // TODO: toggles... for (const bonus of effect.bonuses) { - const { type, name, abil = "", value } = effect; + const { type, name, abil = "", value } = bonus; // TODO: prop if (type === "stat") { if (ret_effects.has(name)) { ret_effects.set(name, ret_effects.get(name) + value); }