From 2333f47416bc52528efb22c27ff27c8421069a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Wed, 13 Apr 2022 16:50:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89=E9=98=B2?= =?UTF-8?q?=E5=85=B7=E6=97=B6=E4=B8=8D=E5=8F=97=E8=8C=83=E5=9B=B4=E4=BC=A4?= =?UTF-8?q?=E5=AE=B3=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/zombie.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/component/zombie.py b/source/component/zombie.py index b401296..79db07c 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -244,6 +244,8 @@ class Zombie(pg.sprite.Sprite): self.helmet = False self.health += self.helmetHealth self.helmetHealth = 0 # 注意合并后清零 + else: # 没有防具 + self.health -= damage elif damageType == c.ZOMBIE_ASH_DAMAGE: self.health -= damage # 无视任何防具 else: