From 875b6be208414b5dc5e472cdbbe1c886c71b935d Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Sat, 16 Mar 2013 18:46:05 +0000
Subject: [PATCH] [Fix] Empire units shouldn't need to face you as they have
 turrets.

---
 scripts/ai/empire.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ai/empire.lua b/scripts/ai/empire.lua
index 56c7ac5..9550755 100644
--- a/scripts/ai/empire.lua
+++ b/scripts/ai/empire.lua
@@ -68,7 +68,7 @@ function attack()
 
 	if dir < 10 and dist > 300 then
 		ai.accel()
-	elseif dir < 10 and dist < 300 then
+	elseif(dir < 10 or ai.hasturrets()) and dist < 300 then
 		ai.shoot()
 	end
 end