foundryvtt-wh4-lang-fr-fr/scripts/nqWu0ZplxzRiUEAg.js

7 lines
321 B
JavaScript
Raw Normal View History

2024-10-08 20:52:09 +02:00
let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : ` - ${this.effect.name}`})
await test.roll();
// Kind of insane but whatever
let opposedResult = test.opposedMessages[0]?.system.opposedHandler?.resultMessage?.system.opposedTest?.result
return opposedResult?.winner == "attacker";