From d8239f0c6f18fd2b55c54330666e5951e88c28a4 Mon Sep 17 00:00:00 2001 From: Scott Tomaszewski Date: Fri, 27 Sep 2024 13:47:34 -0400 Subject: [PATCH] [BUGFIX] Allow enemies to use recoveries --- CHANGELOG.md | 4 ++++ manifest.json | 2 +- src/utils/StaminaEditModal.ts | 5 ----- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bca222..df966dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.1.2 + +- [BUGFIX] Allow enemies to use recoveries + ## 1.1.1 - [BUGFIX] Corrects bugs allowing for non-integer stamina diff --git a/manifest.json b/manifest.json index fa8b527..d4d91e7 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "draw-steel-elements", "name": "Draw Steel Elements", - "version": "1.1.1", + "version": "1.1.2", "minAppVersion": "0.15.0", "description": "Components to support the Draw Steel TTRPG by MCDM.", "author": "Scott Tomaszewski (Xentis)", diff --git a/src/utils/StaminaEditModal.ts b/src/utils/StaminaEditModal.ts index 9e4453d..bfab5b4 100644 --- a/src/utils/StaminaEditModal.ts +++ b/src/utils/StaminaEditModal.ts @@ -240,11 +240,6 @@ export class StaminaEditModal extends Modal { } }); - // For creatures, hide the recovery button (assuming only heroes can spend recovery) - if (!this.isHero(this.character)) { - recoveryButton.style.display = 'none'; - } - // Bottom: Action Button and Reset Button const actionButtonContainer = contentEl.createEl('div', { cls: 'action-button-container' });