Skip to content

Commit

Permalink
Fix polymorph mental attributes typo con instead of cha
Browse files Browse the repository at this point in the history
  • Loading branch information
aaclayton committed Mar 29, 2020
1 parent 3852080 commit ee9ca14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/actor/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit ee9ca14

Please sign in to comment.