Skip to content

Commit

Permalink
Fixed reset macro so that players can't use it
Browse files Browse the repository at this point in the history
  • Loading branch information
WBHarry committed Aug 27, 2024
1 parent 1744c1f commit 274706b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions BestiaryTracking.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions scripts/macros.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 274706b

Please sign in to comment.