mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-19 00:19:03 +01:00
Remove ability use buttons for not owned abilities
This commit is contained in:
parent
080b6bc2da
commit
0c6789c2b7
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue