foundryvtt-wh4-lang-fr-fr/scripts/xklncIMwQIespDxS.js

8 lines
308 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let test = await this.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "vhard"}});
await test.roll();
game.wfrp4e.utility.postCorruptionTest("minor", this.script.getChatData())
if (test.failed)
{
this.actor.addCondition("unconscious");
}