From da5ea2b3a20a3c53a4d68b8f60c334efcb1522bf Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 3 Apr 2022 22:17:55 +0200 Subject: [PATCH] fs --- files/helpers/treasure.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/treasure.py b/files/helpers/treasure.py index a383f37ff7..b671622f42 100644 --- a/files/helpers/treasure.py +++ b/files/helpers/treasure.py @@ -17,6 +17,7 @@ def check_for_treasure(in_text, from_comment): elif is_standard: amount = random.randint(standard_min, standard_max) if random.randint(1, 100) > 90: + user = from_comment.author if amount > user.coins: amount = user.coins amount = -amount