2024-05-16 17:57:51 +02:00
|
|
|
args.applyAP = false;
|
|
|
|
|
2024-05-17 12:46:44 +02:00
|
|
|
this.script.scriptNotification("Ce test ne s'applique seulement qu'aux criminels. Fermez cette fenêtre si ce n'est pas le cas.");
|
2024-05-16 17:57:51 +02:00
|
|
|
this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}).then(async test =>
|
|
|
|
{
|
|
|
|
await test.roll();
|
|
|
|
if (test.failed)
|
|
|
|
{
|
|
|
|
args.actor.addCondition("unconscious");
|
|
|
|
}
|
|
|
|
});
|