custom defeated icons (#1241)

This commit is contained in:
WBHarry 2025-11-06 16:01:19 +01:00 committed by GitHub
parent ff79dd19bf
commit 659670c403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 65 additions and 38 deletions

View file

@ -753,7 +753,7 @@ export default class DhpActor extends Actor {
async toggleDefeated(defeatedState) {
const settings = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Automation).defeated;
const { unconscious, defeated, dead } = CONFIG.DH.GENERAL.conditions;
const { unconscious, defeated, dead } = CONFIG.DH.GENERAL.conditions();
const defeatedConditions = new Set([unconscious.id, defeated.id, dead.id]);
if (!defeatedState) {
for (let defeatedId of defeatedConditions) {