forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts
This commit is contained in:
9
scripts/QPVVDPcJ4Xi5FmQl.js
Normal file
9
scripts/QPVVDPcJ4Xi5FmQl.js
Normal file
@ -0,0 +1,9 @@
|
||||
if(this.actor.hasCondition("fatigued") && args.opposedTest.result.hitloc.value == "head" && (args.opposedTest.attackerTest.result.critical || args.actor.status.wounds.value - args.totalWoundLoss < 0))
|
||||
{
|
||||
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), { fields: { difficulty: "average" }, skipTargets: true, appendTitle : ` - ${this.effect.name}`})
|
||||
await test.roll();
|
||||
if (test.failed)
|
||||
{
|
||||
this.actor.addCondition("unconscious")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user