From 0b00a778d631762434f6bf18f5740f806e7edc80 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 7 Apr 2020 23:41:12 +0100 Subject: [PATCH] `add_card` quantity must always be at least 1 --- houdini/penguin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/houdini/penguin.py b/houdini/penguin.py index 9c42ea5..5313c30 100644 --- a/houdini/penguin.py +++ b/houdini/penguin.py @@ -194,6 +194,7 @@ class Penguin(Spheniscidae, penguin.Penguin): return True async def add_card(self, card, quantity=0, member_quantity=0): + quantity = max(1, quantity + member_quantity) if card.id in self.cards: penguin_card = self.cards[card.id]