This commit is contained in:
2026-08-29 01:02:09 +08:00
parent 54bb43827a
commit 3306d78af5
7 changed files with 903 additions and 499 deletions
@@ -1513,8 +1513,11 @@ public class CreateFishManager : MonoSingleton<CreateFishManager>
{
if (sit.monCotl_Lock != null && sit.monCotl_Lock.guid == fishId)
{
sit.monCotl_Lock = null;
sit.monCotl_Lock_Position = null;
// ⭐ 必须完整清锁(ClearLock 置 isLock=false/隐藏锁定圈/重置 isManualLock/炮台回Idle),
// 不能只清两个引用:isLock 残留 true 会让 GameMainPanel_FishBase.HandleAutoRotate
// 对空 monCotl_Lock_Position 取 .position 每帧抛 NRE,
// 排在其后的 CheckLockTargetValid/HandleAutoLock 永远执行不到 → 锁定系统卡死
sit.ClearLock();
}
}
}