From 0c9d7f146875965b79b5ee17dddaca28021ce937 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, 5 Apr 2022 17:19:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=93=B2=E5=AD=90=E9=93=B2?= =?UTF-8?q?=E5=87=BA=E6=9D=A5=E7=9A=84=E7=A9=BA=E4=BD=8D=E4=B8=8A=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E7=A7=8D=E6=A4=8D=E7=89=A9=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 - source/state/level.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index acbc392..e41d6a2 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,6 @@ nuitka --mingw --standalone --onefile --show-progress --show-memory --output-dir * 给胜利和失败界面添加音乐 * 修复已经死亡的僵尸会触发大嘴花、土豆雷甚至小推车的问题 * 用蓝色滤镜标识冷冻的僵尸 -* 修复铲子铲出来的空位上无法种植物的bug ## 截屏 diff --git a/source/state/level.py b/source/state/level.py index 57b0b47..3aff6ed 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -261,7 +261,7 @@ class Level(tool.State): for i in self.plant_groups[map_y]: if(x >= i.rect.x and x <= i.rect.right and y >= i.rect.y and y <= i.rect.bottom): - i.kill() + self.killPlant(i) return # 检查小铲子的位置有没有被点击