[Bug] Fixed Manual MaxHP (#532)

* Set adversary buttosn to type=button. Fixed faulty _onUpdate

* Fixed
This commit is contained in:
WBHarry 2025-08-02 22:15:09 +02:00 committed by GitHub
parent 2f39e04da5
commit cbd176d5bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -579,7 +579,7 @@ export default class DhCharacter extends BaseDataActor {
: this.levelData.level.current * 2
};
this.resources.hope.max -= Object.keys(this.scars).length;
this.resources.hitPoints.max = this.class.value?.system?.hitPoints ?? 0;
this.resources.hitPoints.max += this.class.value?.system?.hitPoints ?? 0;
}
prepareDerivedData() {