diff --git a/BestiaryTracking.js b/BestiaryTracking.js index 5318403..201bc69 100644 --- a/BestiaryTracking.js +++ b/BestiaryTracking.js @@ -5577,6 +5577,11 @@ const addMonster = async () => { }; const resetBestiary = async () => { + if(!game.user.isGM) { + ui.notifications.error(game.i18n.localize("PF2EBestiary.Macros.AddMonster.GMOnly")); + return; + } + const confirmed = await Dialog.confirm({ title: game.i18n.localize("PF2EBestiary.Macros.ResetBestiary.Title"), content: game.i18n.localize("PF2EBestiary.Macros.ResetBestiary.Text"), diff --git a/module.json b/module.json index a9472c3..62e0d17 100644 --- a/module.json +++ b/module.json @@ -3,7 +3,7 @@ "name": "pf2e-bestiary-tracking", "title": "PF2E Bestiary Tracking", "description": "A module to track known information about enemies for players in a bestiary.", - "version": "0.8.9.8.3", + "version": "0.8.9.9.1", "authors": [ { "name": "HarryBoy" diff --git a/scripts/macros.js b/scripts/macros.js index 03f328c..cb95d4e 100644 --- a/scripts/macros.js +++ b/scripts/macros.js @@ -84,6 +84,11 @@ export const addMonster = async () => { }; export const resetBestiary = async () => { + if(!game.user.isGM) { + ui.notifications.error(game.i18n.localize("PF2EBestiary.Macros.AddMonster.GMOnly")); + return; + } + const confirmed = await Dialog.confirm({ title: game.i18n.localize("PF2EBestiary.Macros.ResetBestiary.Title"), content: game.i18n.localize("PF2EBestiary.Macros.ResetBestiary.Text"),