[#12549] RepairAI 尝试修复已死亡的建筑物
本帖由 MDT GitHub 同步机器人自动整理。翻译与摘要由 AI 生成,仅供阅读参考。
问题概要
当通过世界处理器将建筑物生命值设为 0 导致其死亡时,RepairAI 仍会错误地尝试修复该已死亡的建筑物。
内容
平台
Windows
构建版本
发布版本 159.7
问题
当通过世界处理器将建筑物的生命值设为 0(它死亡)时,RepairAI 会立即响应并尝试修复该建筑物,尽管它已经死亡。
复现步骤
我正在测试世界处理器的工作方式,并且有一些之前实验留下的 mono 和 mega,然后这个 bug 就出现了。
-> 建造一个世界处理器 -> 让它将建筑物的生命值设为 0 -> RepairAI 将尝试修复已死亡的建筑物
当你保存并退出时,它会重置单位的 RepairAI。
使用的模组
无
存档文件
0.zip
GitHub 不允许上传 .msav 文件,所以我压缩了我的存档。
(崩溃)日志
无回应
提交
我已更新至最新发布版本 (https://github.com/Anuken/Mindustry/releases) 以确保我的问题未被修复。
我已搜索已关闭和开放的 issues 以确保此问题尚未被报告。
我没有使用 Foo's Client。
此问题在未启用模组的情况下发生。
我已附上有效的存档文件。
原始信息
GitHub 编号:#12549
作者:jstational
状态:closed
标签:bug
创建时间:2026-08-29 14:00:51 CST
<details> <summary>查看原文</summary>
Platforms
Windows
Build
release build 159.7
Issue
when a building's health is set to 0 through a world processor (it dies), RepairAI immediately responds to heal the building even though its already dead
Steps to reproduce
I was testing how world processors worked and had a few monos and megas from a previous experiment, then this bug happened
-> make a world processor -> make it set the health of a building to 0 -> and RepairAI will try to heal the already dead building
when you save & quit it will reset the units' RepairAI
Mods used
none
Save file
0.zip
github wont allow .msav so i zipped my save instead
(Crash) logs
No response
Submission
I have updated to the latest release (https://github.com/Anuken/Mindustry/releases) to make sure my issue has not been fixed.
I have searched the closed and open issues to make sure that this problem has not already been reported.
I am not using Foo's Client.
This issue occurs with no mods enabled.
I have attached a valid save file.
</details>
来源:GitHub #12549