Skip to content

Commit

Permalink
fix: allow AE encumb check if dead status
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin9257 committed Sep 25, 2024
1 parent 25759a2 commit 394b3f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/module/entities/TwodsixActiveEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,13 @@ export class TwodsixActiveEffect extends ActiveEffect {
* @returns {void}
*/
async function checkEncumbranceStatus (activeEffect:TwodsixActiveEffect):void {
if (game.settings.get('twodsix', 'useEncumbranceStatusIndicators') && changesEncumbranceStat(activeEffect)) {
if (game.settings.get('twodsix', 'useEncumbranceStatusIndicators') && (changesEncumbranceStat(activeEffect) || activeEffect.statuses.has('dead'))) {
if (activeEffect.statuses.size === 0 ) {
await applyEncumberedEffect(activeEffect.parent);
} else {
const notEncumbered = !activeEffect.statuses.has('encumbered');
const notUnc = !activeEffect.statuses.has('unconscious');
const notDead = !activeEffect.statuses.has('dead');
if (notEncumbered && notUnc && notDead) {
if (notEncumbered && notUnc) {
await applyEncumberedEffect(activeEffect.parent);
}
}
Expand Down

0 comments on commit 394b3f2

Please sign in to comment.