Merge branch 'main' into feature/death-moves

This commit is contained in:
Chris Ryan 2025-12-10 21:37:54 +10:00
commit 9ce5c27c85
3 changed files with 4 additions and 2 deletions

View file

@ -197,6 +197,8 @@ export default class DHTokenHUD extends foundry.applications.hud.TokenHUD {
for (const effect of activeEffects) {
for (const statusId of effect.statuses) {
const status = choices[statusId];
if (!status) continue;
status.instances = 1 + (status.instances ?? 0);
status.locked = status.locked || effect.condition || status.instances > 1;
if (!status) continue;