From 5276e90d72b1a1934b7c13ae7bfc3a33b13c2bfb 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, 3 May 2022 14:25:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E4=BF=9D=E8=AF=81=E6=94=BB=E5=87=BB?= =?UTF-8?q?=E6=97=B6=E5=B8=B8=E5=B9=B3=E8=A1=A1=EF=BC=8C=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E7=BC=A9=E7=9F=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/zombie.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/component/zombie.py b/source/component/zombie.py index 0513b7d..bdd8511 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -309,8 +309,7 @@ class Zombie(pg.sprite.Sprite): self.prey = prey # prey can be plant or other zombies self.prey_is_plant = is_plant self.state = c.ATTACK - # 首次攻击间隔的延迟时间应当适当缩短 - self.attack_timer = self.current_time - c.ATTACK_INTERVAL * self.getAttackTimeRatio() + self.attack_timer = self.current_time self.animate_interval = self.attack_animate_interval if self.helmet or self.helmetType2: # 这里暂时没有考虑同时有两种防具的僵尸