diff --git a/scripts/ai/include/basic.lua b/scripts/ai/include/basic.lua index a09704b..b448bf1 100644 --- a/scripts/ai/include/basic.lua +++ b/scripts/ai/include/basic.lua @@ -23,7 +23,8 @@ function attack() second = ai.secondary() -- Get best secondary weapon. -- Shoot missiles if in range. - if ai.secondary() == "Launcher" and dist < ai.getweaprange(1) then + if ai.secondary() == "Launcher" and + dist < ai.getweaprange(1) and dir < 30 then -- More lenient with aiming. ai.settarget(target) ai.shoot(2) end