From ee9ca14cd194a1fac6fc9899fcf2cfaacf70c875 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 28 Mar 2020 22:57:59 -0700 Subject: [PATCH] Fix polymorph mental attributes typo con instead of cha --- 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 ce9dc2204f..3ebb0d491a 100644 --- a/module/actor/entity.js +++ b/module/actor/entity.js @@ -780,7 +780,7 @@ export class Actor5e extends Actor { for ( let k of Object.keys(abilities) ) { const oa = o.data.abilities[k]; if ( keepPhysical && ["str", "dex", "con"].includes(k) ) abilities[k] = oa; - else if ( keepMental && ["int", "wis", "con"].includes(k) ) abilities[k] = oa; + else if ( keepMental && ["int", "wis", "cha"].includes(k) ) abilities[k] = oa; if ( keepSaves ) abilities[k].proficient = oa.proficient; else if ( mergeSaves ) abilities[k].proficient = Math.max(abilities[k].proficient, oa.proficient) }