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