Fix At Will Scaling

Forgot to change cantrip to at will
This commit is contained in:
supervj 2020-10-06 08:33:37 -04:00 committed by GitHub
parent 1455f37d50
commit 4bed1d1869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;