Remove ability use buttons for not owned abilities

This commit is contained in:
Dapoolp 2025-08-10 19:02:59 +02:00
parent 080b6bc2da
commit 0c6789c2b7

View file

@ -69,6 +69,11 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
break;
}
}
if(!game.user.isGM && !this.isAuthor && !this.speakerActor?.isOwner) {
const buttons = html.querySelectorAll(".ability-card-footer > .ability-use-button");
buttons.forEach(b => b.remove());
}
}
addChatListeners(html) {