diff --git a/src/module/actor/actor.js b/src/module/actor/actor.js index 223e166c..2ef96d26 100644 --- a/src/module/actor/actor.js +++ b/src/module/actor/actor.js @@ -761,7 +761,7 @@ export class DemonlordActor extends Actor { if (isAttack && attackAttribute) { launchRollDialog(game.i18n.localize('DL.DialogSpellRoll') + game.i18n.localize(item.name), async (event, html) => { for (const target of targets) { - await this.useSpell(item, html.form.elements.boonsbanes.value, html.form.elements.modifier.value, target) + await this.useSpell(item, html.form.elements.boonsbanes.value, html.form.elements.modifier.value, [target]) } if (targets.length === 0 ) await this.useSpell(item,html.form.elements.boonsbanes.value, html.form.elements.modifier.value) }) @@ -770,7 +770,7 @@ export class DemonlordActor extends Actor { } } - async useSpell(spell, inputBoons, inputModifier, target = null) { + async useSpell(spell, inputBoons, inputModifier, target = []) { const spellData = spell.system const attackAttribute = spellData?.action?.attack?.toLowerCase() const defenseAttribute = spellData?.action?.against?.toLowerCase()