From 24a548a94fcd8a7b1bb07d585cea3d97a57273f5 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, 8 May 2022 17:07:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=95=83=E9=A3=9F=E8=B1=81?= =?UTF-8?q?=E5=85=8D=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/state/level.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/state/level.py b/source/state/level.py index cdfd92f..cd16aac 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -927,8 +927,8 @@ class Level(tool.State): break elif plant.name in {c.LILYPAD, "花盆(未实现)"}: attackableBackupPlant.append(plant) - # 注意要剔除掉两个“假植物” - elif plant.name not in {c.HOLE, c.ICE_FROZEN_PLOT}: + # 注意要剔除掉两个“假植物”,以及不能被啃的地刺 + elif plant.name not in {c.HOLE, c.ICE_FROZEN_PLOT, c.SPIKEWEED}: attackableCommonPlants.append(plant) else: if attackableCommonPlants: @@ -964,8 +964,6 @@ class Level(tool.State): elif targetPlant.name == c.REDWALLNUTBOWLING: if targetPlant.state == c.IDLE: targetPlant.setAttack() - elif targetPlant.name in {c.SPIKEWEED}: - continue else: zombie.setAttack(targetPlant)