From 4d14d814f407f53b3099505075d43cc9ff4c56fb Mon Sep 17 00:00:00 2001 From: lizhuoyuan <2820814112@qq.com> Date: Mon, 20 Jan 2025 10:41:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=B4=A5=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/functions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/functions.js b/project/functions.js index c385d967..5d8235d1 100644 --- a/project/functions.js +++ b/project/functions.js @@ -454,12 +454,13 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = else { if (core.getBlockId(x, y) === enemyId && failMoveInfo && core.getBlockId(failMoveInfo.aimx, failMoveInfo.aimy) === failMoveInfo.aimId) { - // to be tested: 怪物残血能否正确迁移数据 const doFailMove = [{ "type": "setBlock", "number": enemyId, "loc": [[failMoveInfo.aimx, failMoveInfo.aimy]], "time": 50 }, { "type": "setBlock", "number": failMoveInfo.aimId, "loc": [[x, y]], "time": 50 }, ] core.insertAction(doFailMove); + // to be tested: 怪物残血能否正确迁移数据 + switchEnemyOnPoint(x, y, failMoveInfo.aimx, failMoveInfo.aimy); } }