From 66d4aa03656cefc3db4fce13470dfcc8a46cada0 Mon Sep 17 00:00:00 2001 From: tetrisface <89279737+tetrisface@users.noreply.github.com> Date: Thu, 28 Mar 2024 20:32:18 +0100 Subject: [PATCH] feat(raptors): raptors now target commanders (#2793) Co-authored-by: autolumn <89279737+autolumn@users.noreply.github.com> --- luarules/gadgets/raptor_spawner_defense.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luarules/gadgets/raptor_spawner_defense.lua b/luarules/gadgets/raptor_spawner_defense.lua index 43e244b5dd8..300f6fb2b1f 100644 --- a/luarules/gadgets/raptor_spawner_defense.lua +++ b/luarules/gadgets/raptor_spawner_defense.lua @@ -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