forked from GitHub-Mirrors/foundry-sw5e
Fix At Will Scaling
Forgot to change cantrip to at will
This commit is contained in:
parent
1455f37d50
commit
4bed1d1869
1 changed files with 2 additions and 2 deletions
|
@ -717,9 +717,9 @@ export default class Item5e extends Item {
|
|||
|
||||
// Scale damage from up-casting powers
|
||||
if ( (this.data.type === "power") ) {
|
||||
if ( (itemData.scaling.mode === "cantrip") ) {
|
||||
if ( (itemData.scaling.mode === "atwill") ) {
|
||||
const level = this.actor.data.type === "character" ? actorData.details.level : actorData.details.powerLevel;
|
||||
this._scaleCantripDamage(parts, itemData.scaling.formula, level, rollData);
|
||||
this._scaleAtWillDamage(parts, itemData.scaling.formula, level, rollData);
|
||||
}
|
||||
else if ( powerLevel && (itemData.scaling.mode === "level") && itemData.scaling.formula ) {
|
||||
const scaling = itemData.scaling.formula;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue