This commit is contained in:
2025-05-02 12:24:44 +02:00
commit 39e925cc1b
3238 changed files with 110472 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
if (args.opposedTest?.attackerTest?.item?.system?.isRanged)
{
let choice = await Dialog.wait({
title: this.effect.name,
content: `<p>Eviter les dégâts avec <strong>${this.effect.name}</strong>?`,
buttons: {
yes: {
label: "Oui",
callback: () => {
return true;
}
},
no: {
label: "Non",
callback: () => {
return false;
}
}
}
})
if (choice)
{
args.abort = `<strong>${this.effect.name}</strong>: Dégâts annulés`
}
}