forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts
This commit is contained in:
7
scripts/LXEUhHuXe8keEPI9.js
Normal file
7
scripts/LXEUhHuXe8keEPI9.js
Normal file
@ -0,0 +1,7 @@
|
||||
let test = await this.actor.setupCharacteristic("wp", {fields: {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`})
|
||||
await test.roll();
|
||||
if (test.failed)
|
||||
{
|
||||
let stuns = Math.max(1, Math.abs(test.result.SL))
|
||||
this.actor.addCondition("stunned", stuns)
|
||||
}
|
Reference in New Issue
Block a user