Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,13 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
{
VecObjectPtr objlist = selectedSquad->getLiveObjects();
Int numObjs = objlist.size();

// TheSuperHackers @bugfix skyaero 22/07/2025 Can't select other units if you have a structure selected. So deselect the structure to prevent group force attack exploit.
if (numObjs > 0 && objlist[0]->getDrawable()->isKindOf(KINDOF_STRUCTURE))
{
TheInGameUI->deselectAllDrawables();
}

for (Int i = 0; i < numObjs; ++i)
{
TheInGameUI->selectDrawable(objlist[i]->getDrawable());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,13 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
{
VecObjectPtr objlist = selectedSquad->getLiveObjects();
Int numObjs = objlist.size();

// TheSuperHackers @bugfix skyaero 22/07/2025 Can't select other units if you have a structure selected. So deselect the structure to prevent group force attack exploit.
if (numObjs > 0 && objlist[0]->getDrawable()->isKindOf(KINDOF_STRUCTURE))
{
TheInGameUI->deselectAllDrawables();
}

for (Int i = 0; i < numObjs; ++i)
{
TheInGameUI->selectDrawable(objlist[i]->getDrawable());
Expand Down
Loading