Skip to content

Commit

Permalink
feat(raptors): raptors now target commanders (#2793)
Browse files Browse the repository at this point in the history
Co-authored-by: autolumn <[email protected]>
  • Loading branch information
tetrisface and tetrisface authored Mar 28, 2024
1 parent 1760d8d commit 66d4aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luarules/gadgets/raptor_spawner_defense.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ if gadgetHandler:IsSyncedCode() then
end
end

if not unitDef.canMove then
if not unitDef.canMove or (unitDef.customParams and unitDef.customParams.iscommander) then
-- Calculate an eco value based on energy and metal production
local ecoValue = 1
if unitDef.energyMake then
Expand Down

0 comments on commit 66d4aa0

Please sign in to comment.