Skip to content

Commit

Permalink
Fix auto-encumbered not granting clumsy 1 (foundryvtt#11632)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam authored Nov 20, 2023
1 parent 03fdce3 commit 8442e3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module/actor/creature/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 8442e3c

Please sign in to comment.