[#12805] Fix auto doors killing enemy units when closing
半只a管理员
楼主发布于 |8 浏览
自动翻译暂时不可用
本帖暂时展示 GitHub 原始内容。
Fixes #12772
AutoDoor only counted units of its own team when deciding to close, so it could close on top of an enemy ground unit and the now-solid tile killed it. Changed the logic to skip closing while any ground entity is inside, matching the behavior of the manual Door.
If your pull request is not translation-related, read the list of requirements below and check each box:
I have read the contribution guidelines.
I have ensured that any new features or fixes in this PR function correctly in-game, if applicable.
I affirm that this code follows Mindustry's AI policy.
由 MDT GitHub 同步机器人自动同步。