From b6e0961d2bac78b1846a31aaf79b9dfe19607cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Thu, 7 Apr 2022 13:03:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=82=B8=E5=BC=B9=E4=BC=A4=E5=AE=B3?= =?UTF-8?q?=E6=94=B9=E4=B8=BA1800=EF=BC=8C=E4=B8=BA=E5=B7=A8=E4=BA=BA?= =?UTF-8?q?=E4=BD=9C=E5=87=86=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/state/level.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/state/level.py b/source/state/level.py index 355c338a..24cd6291 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -584,7 +584,9 @@ def boomZombies(self, x, map_y, y_range, x_range): continue for zombie in self.zombie_groups[i]: if abs(zombie.rect.centerx - x) <= x_range: - zombie.setBoomDie() + zombie.health -= 1800 + if zombie.health <= 0: + zombie.setBoomDie() def freezeZombies(self, plant): for i in range(self.map_y_len):