Risk It All - critical roll - clear all stress and HP

This commit is contained in:
Chris Ryan 2026-01-06 21:17:32 +10:00
parent ef6afc6e66
commit 47f161a19b
2 changed files with 15 additions and 1 deletions

View file

@ -78,6 +78,20 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV
if (config.roll.isCritical) {
console.log("Clear all stress and HP");
await this.actor.update(
{
system: {
resources: {
hitPoints: {
value: 0
},
stress: {
value: 0
}
}
}
}
);
return;
}