From e73c04b9f5f1de39cb0218385ff6d60cb218c0c4 Mon Sep 17 00:00:00 2001 From: supervj <64861570+supervj@users.noreply.github.com> Date: Mon, 15 Feb 2021 14:05:45 -0500 Subject: [PATCH] Update entity.js whoops again :) --- module/actor/entity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor/entity.js b/module/actor/entity.js index c3a4418c..4560f283 100644 --- a/module/actor/entity.js +++ b/module/actor/entity.js @@ -529,7 +529,7 @@ export default class Actor5e extends Actor { if ( Number.isNaN(i) ) continue; if ( Number.isNumeric(lvl.toverride) ) lvl.tmax = Math.max(parseInt(lvl.toverride), 0); else lvl.tmax = techPowerLimit[i-1] || 0; - lvl.tvalue = Math.max(parseInt(lvl.tvalue),lvl.tmax); + lvl.tvalue = Math.min(parseInt(lvl.tvalue),lvl.tmax); } // Set Force and tech power