Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ This page lists all the individual contributions to the project by their author.
- 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
- Allow customizing whether to synchronously change the owner of the RadioLink-linked units when the owner of a building changes
- Fix an issue where units recruited by a team with `AreTeamMembersRecruitable=false` cannot be recruited even if they have been liberated by that team
- **solar-III (凤九歌)**
- Target scanning delay customization (documentation)
- Skip target scanning function calling for unarmed technos (documentation)
Expand Down
1 change: 1 addition & 0 deletions docs/Fixed-or-Improved-Logics.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ This page describes all ingame logics that are fixed or improved in Phobos witho
- 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.
- Fixed the issue where units recruited by a team with `AreTeamMembersRecruitable=false` cannot be recruited even if they have been liberated by that team.

## Fixes / interactions with other extensions

Expand Down
1 change: 1 addition & 0 deletions docs/Whats-New.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ Vanilla fixes:
- 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)
- Fixed the issue where units recruited by a team with `AreTeamMembersRecruitable=false` cannot be recruited even if they have been liberated by that team (by TaranDahl)

Phobos fixes:
- Fixed the bug that `AllowAirstrike=no` cannot completely prevent air strikes from being launched against it (by NetsuNegi)
Expand Down
8 changes: 8 additions & 0 deletions src/Misc/Hooks.BugFixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2912,3 +2912,11 @@ DEFINE_HOOK(0x65DE82, TeamTypeClass_CreateTeamMembers_Veterancy, 0x6)

// Fixed the issue where non-repairer units needed sensors to attack cloaked friendly units.
DEFINE_JUMP(LJMP, 0x6FC278, 0x6FC289);

// Fixed the issue where units recruited by a team with `AreTeamMembersRecruitable=false` cannot be recruited even if they have been liberated by that team.
DEFINE_HOOK(0x6EA870, TeamClass_LiberateMember_Start, 0x6)
{
GET_STACK(FootClass*, pMember, 0x4);
pMember->RecruitableB = true;
return 0;
}