diff --git a/assets/script/game/hero/MoveComp.ts b/assets/script/game/hero/MoveComp.ts index 869a30ad..4a87d98e 100644 --- a/assets/script/game/hero/MoveComp.ts +++ b/assets/script/game/hero/MoveComp.ts @@ -103,6 +103,10 @@ export class MoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate update(e: ecs.Entity) { /** 战斗未开始/暂停时不驱动移动 */ if (!smc.mission.play || smc.mission.pause) return; + + /** 在战斗阶段,英雄和怪物不移动 */ + if (smc.mission.in_fight) return; + const model = e.get(HeroAttrsComp); const move = e.get(MoveComp); const view = e.get(HeroViewComp);