Turret attack code fixed