From 7641516c760a19f0afef6008e38a2d64c66c7f61 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Mon, 8 Jun 2026 20:05:38 +0300 Subject: [PATCH] last potion value logic fix in scoundrel --- scoundrel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scoundrel b/scoundrel index 724f4f5..4222525 100755 --- a/scoundrel +++ b/scoundrel @@ -90,7 +90,7 @@ handle_potion() { echo 'Already drank a potion here! Discarding...' else local -i val="$1" - ((${#room[@]} == 1 && ${#deck[@]} == 0)) && last_potion_val=$val + ((${#room[@]} == 0 && ${#deck[@]} == 0)) && last_potion_val=$val ((hp += val)) ((hp > 20)) && hp=20 drank=1