Merge branch 'hotfix' into fix/864-chat-targeting

This commit is contained in:
Dapoolp 2025-08-13 15:50:35 +02:00
commit e5452f1c2a
13 changed files with 208 additions and 55 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());