18 lines
408 B
JavaScript
18 lines
408 B
JavaScript
if (this.sourceActor.uuid === this.actor.uuid) return;
|
|
|
|
const test = await this.actor.setupCharacteristic("t", {
|
|
skipTargets: true,
|
|
appendTitle: ` — ${this.effet.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");
|
|
} |