if (args.opposedTest?.attackerTest?.item?.system?.isRanged) { let choice = await Dialog.wait({ title: this.effect.name, content: `
Abort damage with ${this.effect.name}?`, buttons: { yes: { label: "Yes", callback: () => { return true; } }, no: { label: "No", callback: () => { return false; } } } }) if (choice) { args.abort = `${this.effect.name}: Damage cancelled` } }