Fixed so that the token hud for party tokens works again (#1326)

This commit is contained in:
WBHarry 2025-11-25 00:35:05 +01:00 committed by GitHub
parent f78f8e32b6
commit 9e0bc3cff1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ export default class DHTokenHUD extends foundry.applications.hud.TokenHUD {
context.systemStatusEffects = Object.keys(context.statusEffects).reduce((acc, key) => {
const effect = context.statusEffects[key];
if (effect.systemEffect) {
const disabled = !effect.isActive && this.actor.system.rules.conditionImmunities[key];
const disabled = !effect.isActive && this.actor.system.rules?.conditionImmunities?.[key];
acc[key] = { ...effect, disabled };
}