forked from public/foundryvtt-wh4-lang-fr-fr
Update scripts
This commit is contained in:
7
scripts/nqWu0ZplxzRiUEAg.js
Normal file
7
scripts/nqWu0ZplxzRiUEAg.js
Normal file
@ -0,0 +1,7 @@
|
||||
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";
|
Reference in New Issue
Block a user