Fix/877 hope update order (#896)

* Action Macro working again

* k

* Fix Hope gain on Duality Roll
This commit is contained in:
Dapoulp 2025-08-13 14:20:59 +02:00 committed by GitHub
parent 6d789aceb3
commit 86a09df944
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 16 deletions

View file

@ -72,7 +72,7 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
if(!game.user.isGM) {
const applyButtons = html.querySelector(".apply-buttons");
applyButtons.remove();
applyButtons?.remove();
if(!this.isAuthor && !this.speakerActor?.isOwner) {
const buttons = html.querySelectorAll(".ability-card-footer > .ability-use-button");
buttons.forEach(b => b.remove());