forked from GitHub-Mirrors/foundry-sw5e
Fixed bug that caused power points to not have the mods
This commit is contained in:
parent
7a18055c18
commit
b343a06ef6
1 changed files with 2 additions and 2 deletions
|
@ -669,10 +669,10 @@ export default class Actor5e extends Actor {
|
|||
// TODO: Consider an option for using the variant rule of all powers use the same value
|
||||
ad.attributes.powerForceLightDC = 8 + ad.abilities.wis.mod + ad.attributes.prof ?? 10;
|
||||
ad.attributes.powerForceDarkDC = 8 + ad.abilities.cha.mod + ad.attributes.prof ?? 10;
|
||||
ad.attributes.powerForceUnivDC = Math.max(ad.attributes.powerForceLightDC,ad.attributes.powerForceDarkDC) ?? 10
|
||||
ad.attributes.powerForceUnivDC = Math.max(ad.attributes.powerForceLightDC,ad.attributes.powerForceDarkDC) ?? 10;
|
||||
ad.attributes.powerTechDC = 8 + ad.abilities.int.mod + ad.attributes.prof ?? 10;
|
||||
|
||||
if (actorData.type !== 'actor') return;
|
||||
if (actorData.type !== 'character') return;
|
||||
|
||||
// Set Force and tech bonus points for PC Actors
|
||||
if (!!ad.attributes.force.level){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue