From b2d62deaedd870757b91d30a368df522d0129a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Sun, 15 May 2022 22:52:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=AF=92=E5=86=B0=E8=8F=87?= =?UTF-8?q?=E6=94=BB=E5=87=BB=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/state/level.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/state/level.py b/source/state/level.py index 3b3df512..ea1b23b0 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -1162,9 +1162,8 @@ def freezeZombies(self, plant): for i in range(self.map_y_len): for zombie in self.zombie_groups[i]: - if zombie.rect.left <= c.SCREEN_WIDTH: - zombie.setFreeze(plant.trap_frames[0]) - zombie.setDamage(20, damageType=c.ZOMBIE_RANGE_DAMAGE) # 寒冰菇还有全场20的伤害 + zombie.setFreeze(plant.trap_frames[0]) + zombie.setDamage(20, damageType=c.ZOMBIE_RANGE_DAMAGE) # 寒冰菇还有全场20的伤害 def killPlant(self, targetPlant, shovel=False): x, y = targetPlant.getPosition()