fix: 切楼层触发器失效

This commit is contained in:
unanmed 2024-09-26 23:20:46 +08:00
parent b06c346b56
commit 0611b1864d
2 changed files with 4 additions and 2 deletions

View File

@ -375,7 +375,9 @@ const enum HeroMoveCode {
/** 不能移动,并撞击前面一格的图块,触发其触发器 */
Hit,
/** 不能移动同时当前格有CannotOut或目标格有CannotIn不会触发前面一格的触发器 */
CannotMove
CannotMove,
/** 进入传送门 */
Portal
}
export class HeroMover extends ObjectMoverBase {

View File

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