From 0611b1864dfeea3cf3aa4d2ca63312639addaf7e Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 26 Sep 2024 23:20:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E6=A5=BC=E5=B1=82=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E5=99=A8=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/game/state/move.ts | 4 +++- src/plugin/game/loopMap.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/state/move.ts b/src/game/state/move.ts index 06e9b92..26e112c 100644 --- a/src/game/state/move.ts +++ b/src/game/state/move.ts @@ -375,7 +375,9 @@ const enum HeroMoveCode { /** 不能移动,并撞击前面一格的图块,触发其触发器 */ Hit, /** 不能移动,同时当前格有CannotOut,或目标格有CannotIn,不会触发前面一格的触发器 */ - CannotMove + CannotMove, + /** 进入传送门 */ + Portal } export class HeroMover extends ObjectMoverBase { diff --git a/src/plugin/game/loopMap.ts b/src/plugin/game/loopMap.ts index dea4bd9..2023fb8 100644 --- a/src/plugin/game/loopMap.ts +++ b/src/plugin/game/loopMap.ts @@ -184,7 +184,7 @@ export function init() { return _executeCallback(); // @ts-ignore core.status.automaticRoute.moveDirectly = false; - this.doSystemEvent(trigger, block); + this.doSystemEvent(trigger, block, core.doAction); } return _executeCallback(); };