feat:败移

This commit is contained in:
lizhuoyuan 2025-01-20 10:41:55 +08:00
parent ad9feb1140
commit 4d14d814f4

View File

@ -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);
}
}