Skip to content

Commit

Permalink
Fixed Phantom firing bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
GoogleFrog committed Mar 28, 2019
1 parent 93b66e8 commit 49c96d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LuaRules/Gadgets/cmd_raw_move.lua
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ local function GetConstructorCommandPos(cmdID, cp_1, cp_2, cp_3, cp_4, cp_5, cp_
local queue = Spring.GetCommandQueue(unitID, 2)
if queue and queue[2] then
local par = queue[2].params
cmdID = queue[2].id, queue[2].tag
cmdID = queue[2].id
cp_1, cp_2, cp_3, cp_4, cp_5, cp_6 = par[1], par[2], par[3], par[4], par[5], par[6]
else
cmdID = false
Expand Down
2 changes: 1 addition & 1 deletion LuaRules/Gadgets/unit_dont_fire_at_radar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ local function canShootAtUnit(targetID, allyTeam)
end

local function isTheRightSortOfCommand(cmdID, cmdOpts, cp_1, cp_2)
return cmdID and Spring.Utilities.CheckBit(gadget:GetInfo().name, cmdOpts, CMD.OPT_INTERNAL) and cQueue[index].id == CMD_ATTACK and cp_1 and (not cp_2)
return cmdID and Spring.Utilities.CheckBit(gadget:GetInfo().name, cmdOpts, CMD.OPT_INTERNAL) and cmdID == CMD_ATTACK and cp_1 and (not cp_2)
end

-------------------------------------------------------------------------------------
Expand Down

0 comments on commit 49c96d4

Please sign in to comment.