powers appv2 updates (dialog)

This commit is contained in:
Mike Bloy 2025-05-29 00:12:23 -05:00
parent be74c79b35
commit 669c3799a0
3 changed files with 4 additions and 4 deletions

View File

@ -346,7 +346,7 @@ export async function powerEffectsMenu(options = {}) {
action: 'submit',
label: 'Choose Power',
default: true,
callback: (event, button, dialog) => new FormDataExtended(button.form),
callback: (event, button, dialog) => new foundry.applications.ux.FormDataExtended(button.form),
},
{ action: 'cancel', label: 'Cancel' },
],

View File

@ -168,7 +168,7 @@ class BaseAllyEffect extends BaseSummonEffect {
{
action: 'submit',
label: 'Submit',
callback: (event, button, dialog) => new FormDataExtended(button.form),
callback: (event, button, dialog) => new foundry.applications.ux.FormDataExtended(button.form).object,
},
{ action: 'cancel', label: 'Cancel' },
],

View File

@ -169,12 +169,12 @@ export class ZombieEffect extends BaseSummonEffect {
{
action: 'submit',
label: 'Submit',
callback: (event, button, dialog) => new FormDataExtended(button.form),
callback: (event, button, dialog) => new foundry.applications.ux.FormDataExtended(button.form),
},
{ action: 'cancel', label: 'cancel' },
],
});
const key = formData.trait;
const key = formData.object.trait;
this.data.primaryEffectChanges.push({
mode: CONST.ACTIVE_EFFECT_MODES.ADD,
value: 2,