forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts + translations
This commit is contained in:
13
reference_scripts/HfCxNd7mFGZH4s9Y.js
Normal file
13
reference_scripts/HfCxNd7mFGZH4s9Y.js
Normal file
@ -0,0 +1,13 @@
|
||||
// An opponent that takes more than a single Wound from a Warp Blade strike
|
||||
// in melee combat must make an Average (+20) Endurance Test
|
||||
// or take a Stunned Condition
|
||||
|
||||
|
||||
if (args.totalWoundLoss > 1) {
|
||||
let test = await args.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`})
|
||||
await test.roll();
|
||||
if(test.failed)
|
||||
{
|
||||
await args.actor.addCondition("stunned");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user