From 8442e3c6504d05e37b4f5978e92d2207e76042ab Mon Sep 17 00:00:00 2001 From: Shark that walks like a man <106829671+stwlam@users.noreply.github.com> Date: Mon, 20 Nov 2023 14:20:22 -0600 Subject: [PATCH] Fix auto-encumbered not granting clumsy 1 (#11632) --- src/module/actor/creature/helpers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/module/actor/creature/helpers.ts b/src/module/actor/creature/helpers.ts index 846201cc2b7..5cdf00f90a8 100644 --- a/src/module/actor/creature/helpers.ts +++ b/src/module/actor/creature/helpers.ts @@ -120,12 +120,13 @@ function imposeEncumberedCondition(actor: CreaturePF2e): void { if (actor.inventory.bulk.isEncumbered && actor.conditions.bySlug("encumbered").length === 0) { const source = game.pf2e.ConditionManager.getCondition("encumbered").toObject(); const encumbered = new ConditionPF2e(mergeObject(source, { _id: "xxxENCUMBEREDxxx" }), { parent: actor }); + actor.conditions.set(encumbered.id, encumbered); encumbered.prepareSiblingData(); encumbered.prepareActorData(); for (const rule of encumbered.prepareRuleElements()) { + rule.onApplyActiveEffects?.(); rule.beforePrepareData?.(); } - actor.conditions.set(encumbered.id, encumbered); } }