From e8abecbf7bd82ccbd81c981216a89e435771619c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=88=AA=E5=91=B3=E9=BA=BB=E9=85=B1?= <93972760+TaranDahl@users.noreply.github.com> Date: Mon, 24 Nov 2025 00:41:59 +0800 Subject: [PATCH] core --- CREDITS.md | 1 + docs/Fixed-or-Improved-Logics.md | 1 + docs/Whats-New.md | 1 + src/Misc/Hooks.BugFixes.cpp | 3 +++ 4 files changed, 6 insertions(+) diff --git a/CREDITS.md b/CREDITS.md index 041051e7e8..eba30ab55c 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -643,6 +643,7 @@ This page lists all the individual contributions to the project by their author. - Dehardcode the `ZAdjust` of warhead anim - Fix an issue where some effects pointing to a unit were not properly cleared when the unit changed its owner - Fix an issue where the vanilla script ignores jumpjets + - Fix an issue where non-repairer units needed sensors to attack cloaked friendly units - **solar-III (凤九歌)** - Target scanning delay customization (documentation) - Skip target scanning function calling for unarmed technos (documentation) diff --git a/docs/Fixed-or-Improved-Logics.md b/docs/Fixed-or-Improved-Logics.md index 521c090bf4..52656cdbda 100644 --- a/docs/Fixed-or-Improved-Logics.md +++ b/docs/Fixed-or-Improved-Logics.md @@ -277,6 +277,7 @@ This page describes all ingame logics that are fixed or improved in Phobos witho - Allow Reveal Crate to take effect when picking up by another player controlled house in campaign. - Fixed an issue where the vanilla script ignores jumpjets. Enable it through `[General] -> AIAirTargetingFix=true`. - Fixed the bug that naval ship will sink even they destroyed in air. +- Fixed the issue where non-repairer units needed sensors to attack cloaked friendly units. ## Fixes / interactions with other extensions diff --git a/docs/Whats-New.md b/docs/Whats-New.md index 2543a09879..e7f70f3002 100644 --- a/docs/Whats-New.md +++ b/docs/Whats-New.md @@ -499,6 +499,7 @@ Vanilla fixes: - Fixed an issue where the vanilla script ignores jumpjets (by TaranDahl) - Fixed the issue where trigger events 2, 53 and 54 in persistent type triggers would be activated unconditionally after activation (by FlyStar) - Fixed the bug that naval ship will sink even they destroyed in air (by NetsuNegi) +- Fixed the issue where non-repairer units needed sensors to attack cloaked friendly units (by TaranDahl) Phobos fixes: - Fixed the bug that `AllowAirstrike=no` cannot completely prevent air strikes from being launched against it (by NetsuNegi) diff --git a/src/Misc/Hooks.BugFixes.cpp b/src/Misc/Hooks.BugFixes.cpp index 01200b601d..72b431f533 100644 --- a/src/Misc/Hooks.BugFixes.cpp +++ b/src/Misc/Hooks.BugFixes.cpp @@ -2933,3 +2933,6 @@ DEFINE_HOOK(0x4440B0, BuildingClass_KickOutUnit_CloningFacility, 0x6) return ContinueIn; } + +// Fixed the issue where non-repairer units needed sensors to attack cloaked friendly units. +DEFINE_JUMP(LJMP, 0x6FC278, 0x6FC289);