12 lines
511 B
JavaScript
12 lines
511 B
JavaScript
let add;
|
|
if (args.opposedTest?.attackerTest?.weapon?.isProjectiles && args.opposedTest?.result.hitloc?.value === "head") {
|
|
add = await foundry.applications.api.DialogV2.confirm({window : {title : this.effect.name}, content : "Add 1 AP? Bascinet provides 4 AP instead of 3 against missile attacks from the front"})
|
|
}
|
|
|
|
if (add) {
|
|
|
|
args.modifiers.ap.metal++;
|
|
args.modifiers.ap.used++;
|
|
args.modifiers.ap.value++;
|
|
args.modifiers.ap.details.push("+1 PA contre les attaques à distance de face");
|
|
} |