Files
foundryvtt-wh4-lang-fr-fr/scripts/f4vvAGQ8OGoEbrgy.js
LeRatierBretonnier 8862698262
All checks were successful
Validation JSON / validate (push) Successful in 15s
Release Creation / build (release) Successful in 57s
Nombreuses corections de scripts...
2026-03-07 15:02:18 +01:00

16 lines
507 B
JavaScript

let SL = args.opposedTest.attackerTest.result.SL - args.opposedTest.attackerTest.item.cn.value
let difficulty = "challenging"
if (SL >= 1)
difficulty = "difficult"
if (SL >= 2)
difficulty = "hard"
if (SL >= 3)
difficulty = "vhard"
let test = await args.actor.setupCharacteristic("wp", {fields: {difficulty}, skipTargets: true, appendTitle : " - " + this.effect.name, context : {failure: "Reçoit un état Sonné"}})
await test.roll();
if (test.failed)
{
args.actor.addCondition("stunned");
}