Files
foundryvtt-wh4-lang-fr-fr/scripts/hL3JUSY3xMA4zj2Q.js
LeRatierBretonnier 8862698262
All checks were successful
Validation JSON / validate (push) Successful in 15s
Release Creation / build (release) Successful in 57s
Nombreuses corections de scripts...
2026-03-07 15:02:18 +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");
}