Merge pull request #28 from unrealkakeman89/supervj-At-Will-Scaling

Fix for At Will scaling
This commit is contained in:
CK 2020-10-06 14:25:17 -04:00 committed by GitHub
commit c00a9ae2f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -714,9 +714,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;