forked from GitHub-Mirrors/foundry-sw5e
Update entity.js
This commit is contained in:
parent
917d55e706
commit
7c4807ddc0
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ export default class Actor5e extends Actor {
|
||||||
init.total = init.mod + init.prof + init.bonus;
|
init.total = init.mod + init.prof + init.bonus;
|
||||||
|
|
||||||
// Prepare power-casting data
|
// Prepare power-casting data
|
||||||
data.attributes.powerdc = data.attributes.powercasting ? data.abilities[data.attributes.powercasting].dc : 10;
|
data.attributes.powerdc = data.attributes.powercasting && data.attributes.powercasting !== "none" ? data.abilities[data.attributes.powercasting].dc : 10;
|
||||||
this._computePowercastingProgression(this.data);
|
this._computePowercastingProgression(this.data);
|
||||||
|
|
||||||
// Compute owned item attributes which depend on prepared Actor data
|
// Compute owned item attributes which depend on prepared Actor data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue