From c41f1349ce0fc97eb4770de277f94d5e89b7fac1 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:46:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=98=E9=87=8F=E5=90=8D?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/zombie.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/component/zombie.py b/source/component/zombie.py index 4b9a06f..b401296 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -191,7 +191,7 @@ class Zombie(pg.sprite.Sprite): # 从第二类防具开始逐级传递 if self.helmetType2: self.helmetType2Health -= damage - if helmetType2Health <= 0: + if self.helmetType2Health <= 0: self.helmetType2 = False if self.helmet: self.helmetHealth += self.helmetType2Health # 注意self.helmetType2Health已经带有正负 @@ -224,7 +224,7 @@ class Zombie(pg.sprite.Sprite): # 从第二类防具开始逐级传递 if self.helmetType2: self.helmetType2Health -= damage - if helmetType2Health <= 0: + if self.helmetType2Health <= 0: self.helmetType2 = False if self.helmet: self.helmetHealth -= damage # 注意范围伤害中这里还有一个攻击