diff --git a/bot/bot.py b/bot/bot.py index 70b20b9..86849e0 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -40,7 +40,7 @@ def check_answer(self, sid: int, name: str) -> bool: return (sid == self._sid and name == self._name) def check_capture(self, sid: int, pid: int, flag: str) -> bool: - if pid < 0: + if pid <= 0: return False try: return (sid == self._sid and flag == self._flags[pid-1])