Add all systems effects scripts + translations
This commit is contained in:
26
reference_scripts/naF5EWr1CBkYRZTK.js
Normal file
26
reference_scripts/naF5EWr1CBkYRZTK.js
Normal file
@ -0,0 +1,26 @@
|
||||
if (args.opposedTest?.attackerTest?.item?.system?.isRanged)
|
||||
{
|
||||
let choice = await Dialog.wait({
|
||||
title: this.effect.name,
|
||||
content: `<p>Abort damage with <strong>${this.effect.name}</strong>?`,
|
||||
buttons: {
|
||||
yes: {
|
||||
label: "Yes",
|
||||
callback: () => {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
no: {
|
||||
label: "No",
|
||||
callback: () => {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
if (choice)
|
||||
{
|
||||
args.abort = `<strong>${this.effect.name}</strong>: Damage cancelled`
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user