fix for npc techniques
This commit is contained in:
@@ -50,7 +50,11 @@ export class BaseSheetL5r5e extends ActorSheet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if technique is allowed for this character
|
// Check if technique is allowed for this character
|
||||||
if (item.data.type === "technique" && !this.actor.data.data.techniques[item.data.data.technique_type]) {
|
if (
|
||||||
|
!game.user.isGM &&
|
||||||
|
item.data.type === "technique" &&
|
||||||
|
!this.actor.data.data.techniques[item.data.data.technique_type]
|
||||||
|
) {
|
||||||
new Dialog({
|
new Dialog({
|
||||||
title: "Nope !",
|
title: "Nope !",
|
||||||
content: game.i18n.localize("l5r5e.techniques.not_allowed"),
|
content: game.i18n.localize("l5r5e.techniques.not_allowed"),
|
||||||
|
|||||||
Reference in New Issue
Block a user