Files
foundryvtt-wh4-lang-fr-fr/scripts/naF5EWr1CBkYRZTK.js

9 lines
362 B
JavaScript

if (args.opposedTest?.attackerTest?.item?.system?.isProjectiles)
{
let choice = await foundry.applications.api.DialogV2.confirm({window: {title : this.item.name}, content : `<p>Annuler les dégâts avec <strong>${this.effect.name}</strong>?</p>`})
if (choice)
{
args.abort = `<strong>${this.effect.name}</strong>: Dégats annulés.`;
}
}