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