mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-20 16:44:40 +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;
|
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) {
|
addChatListeners(html) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue