From 641dba13a8cdbfc317e8676ce5abe6bfdb69adf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Tue, 5 Apr 2022 23:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/plant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/component/plant.py b/source/component/plant.py index 2221b87..734459d 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -215,7 +215,7 @@ class Plant(pg.sprite.Sprite): if not zombie.lostHead: self.health -= damage self.hit_timer = self.current_time - if (self.health == 0) or (self.name == c.HYPNOSHROOM and self.state != c.SLEEP): + if (self.health == 0) or (self.name == c.HYPNOSHROOM and self.state != c.SLEEP): # 魅惑菇触发同样会消失 self.kill_zombie = zombie def getPosition(self):