From 81865a6508287f06bb101063da0b6b1e508e6a2e Mon Sep 17 00:00:00 2001 From: raeleus Date: Thu, 26 Sep 2024 07:57:20 -0700 Subject: [PATCH] Update Input.js --- Input.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Input.js b/Input.js index a6c2b5b..6024e2a 100644 --- a/Input.js +++ b/Input.js @@ -1466,7 +1466,10 @@ function doForgetSpell(command) { var tryWord = character.name == "You" ? "try" : "tries" var found = character.spells.find(x => x.toLowerCase() == arg0.toLowerCase()) - if (found == null) return `\n[${character.name} ${tryWord} to forget the spell ${arg0}, but ${character.name} ${dontWord} even know it]\n` + if (found == null) { + state.show = "none" + return `\n[${character.name} ${tryWord} to forget the spell ${arg0}, but ${character.name} ${dontWord} even know it]\n` + } var index = character.spells.findIndex(x => x.toLowerCase() == arg0.toLowerCase()) character.spells.splice(index, 1)