Files
foundryvtt-wh4-lang-fr-fr/scripts/hL3JUSY3xMA4zj2Q.js

18 lines
409 B
JavaScript

if (this.sourceActor.uuid === this.actor.uuid) return;
const test = await this.actor.setupCharacteristic("t", {
skipTargets: true,
appendTitle: `${this.effect.name}`,
fields: {
difficulty: "difficult"
},
context: {
success: "Est capable de se relever !",
failure: "Est tombé à terre !",
}
});
await test.roll();
if (test.failure) {
await this.actor.addCondition("prone");
}