diff --git a/files/helpers/lottery.py b/files/helpers/lottery.py index b5322d78e2..18756c43a8 100644 --- a/files/helpers/lottery.py +++ b/files/helpers/lottery.py @@ -94,7 +94,9 @@ def check_if_end_lottery_task(): def purchase_lottery_tickets(v, quantity=1): - if (v.coins < LOTTERY_TICKET_COST * quantity): + if quantity < 1: + return False, "Must purchase one or more lottery tickets." + elif (v.coins < LOTTERY_TICKET_COST * quantity): return False, f'Lottery tickets cost {LOTTERY_TICKET_COST} dramacoins each.' most_recent_lottery = get_active_lottery()