Skip to content

Commit

Permalink
Fix athena fake factory hax showing up to enemies
Browse files Browse the repository at this point in the history
  • Loading branch information
Arch-Shaman committed Jan 15, 2025
1 parent af8dbd7 commit fa8ca15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LuaRules/Gadgets/unit_mobile_factory_helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ local spGiveOrderArrayToUnit = Spring.GiveOrderArrayToUnit
local spGiveOrderToUnit = Spring.GiveOrderToUnit
local spEditUnitCmdDesc = Spring.EditUnitCmdDesc
local spFindUnitCmdDesc = Spring.FindUnitCmdDesc
local spSetUnitCloak = Spring.SetUnitCloak

local CMD_QUEUE_MODE = Spring.Utilities.CMD.QUEUE_MODE
local CMD_AREA_GUARD = Spring.Utilities.CMD.AREA_GUARD
Expand Down Expand Up @@ -108,6 +109,7 @@ local function AddFakeFactory(unitID)
spSetUnitNoDraw(fakeUnitID, true)
spSetUnitNoMinimap(fakeUnitID, true)
spSetUnitNoSelect(fakeUnitID, true)
spSetUnitCloak(fakeUnitID, 4)
spSetUnitBlocking(fakeUnitID, false, false, false, false, false, false, false)
fakeUnits[unitID] = fakeUnitID
spSetUnitRulesParam(unitID, "queueunit", fakeUnitID, ALLIEDONLY)
Expand Down

0 comments on commit fa8ca15

Please sign in to comment.