diff --git a/CREDITS.md b/CREDITS.md index 63cee44b4a..692247f19a 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -655,6 +655,7 @@ This page lists all the individual contributions to the project by their author. - Fix an issue where the vanilla script ignores jumpjets - CellSpread in cylinder shape - CellSpread damage check if victim is in air or on floor + - 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 0f9239b02a..a83a6a9fb0 100644 --- a/docs/Fixed-or-Improved-Logics.md +++ b/docs/Fixed-or-Improved-Logics.md @@ -282,6 +282,7 @@ This page describes all ingame logics that are fixed or improved in Phobos witho - Fixed the issue that units will goto farest location if target is closer than `MinimumRange`. - Fixed a bug where units can be promoted when created via trigger actions even if they have `Trainable=false`. - Fixed the bug that ai will try to product aircraft even the airport has no free dock for it. +- 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 65e16f7c29..ef5401ed78 100644 --- a/docs/Whats-New.md +++ b/docs/Whats-New.md @@ -513,6 +513,7 @@ Vanilla fixes: - Fixed the issue that units will goto farest location if target is closer than `MinimumRange` (by NetsuNegi) - Fixed a bug where units can be promoted when created via trigger actions even if they have `Trainable=false` (by NetsuNegi) - Fixed the bug that ai will try to product aircraft even the airport has no free dock for it (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 f6fee8ebe5..ca8ac8733a 100644 --- a/src/Misc/Hooks.BugFixes.cpp +++ b/src/Misc/Hooks.BugFixes.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -2909,3 +2909,6 @@ DEFINE_HOOK(0x65DE82, TeamTypeClass_CreateTeamMembers_Veterancy, 0x6) return pTechnoType->Trainable ? 0 : SkipVeterancy; } + +// Fixed the issue where non-repairer units needed sensors to attack cloaked friendly units. +DEFINE_JUMP(LJMP, 0x6FC278, 0x6FC289);