From cac28145fbb747ad6b746d6b9894f9d0c7f84586 Mon Sep 17 00:00:00 2001 From: panFD Date: Wed, 22 Jul 2026 13:05:02 +0800 Subject: [PATCH] fix(monster move): add stun state to movement stop condition add check for stun state when determining if monster should stop moving and clear combat target --- assets/script/game/hero/MonMoveComp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/script/game/hero/MonMoveComp.ts b/assets/script/game/hero/MonMoveComp.ts index 1c9c2be5..0affa74d 100644 --- a/assets/script/game/hero/MonMoveComp.ts +++ b/assets/script/game/hero/MonMoveComp.ts @@ -75,7 +75,7 @@ export class MonMoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpda return; } - if (model.is_stop || model.is_dead || model.is_reviving || model.isFrost()) { + if (model.is_stop || model.is_dead || model.is_reviving || model.isFrost() || model.isStun()) { this.clearCombatTarget(model); if (!model.is_reviving) view.status_change("idle"); return;