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
This commit is contained in:
panFD
2026-07-22 13:05:02 +08:00
parent b647d68dde
commit cac28145fb

View File

@@ -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;