Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
@@ -1,24 +1,11 @@
|
||||
|
||||
let choice = await Dialog.wait({
|
||||
title: this.effect.name,
|
||||
content: `<p><strong>${this.effect.name}</strong>: Est-ce que l'attaque magique ou à distance provient de l'extérieur du Dome?</p>`,
|
||||
buttons: {
|
||||
yes: {
|
||||
label: "Oui",
|
||||
callback: () => {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
no: {
|
||||
label: "Non",
|
||||
callback: () => {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
if (choice)
|
||||
if (!args.opposedTest.attackerTest.item?.system?.isMelee)
|
||||
{
|
||||
args.ward = 6;
|
||||
}
|
||||
let choice = await foundry.applications.api.DialogV2.confirm({ window: { title: this.effect.name }, content: `<p><strong>${this.effect.name}</strong>: Is this a ranged or magical attack that orignates outside the Dome?</p>` })
|
||||
|
||||
if (choice)
|
||||
{
|
||||
args.ward = 6;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user