Files
foundryvtt-wh4-lang-fr-fr/scripts/hL3JUSY3xMA4zj2Q.js
2026-01-29 11:43:28 +01:00

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");
}