From: Utopia Planitia Fleet Yards
Or for the opportunity fire, you can perhaps ask some directives from the player to help the AI decide before the actual sequence is played.
For example, if enemy infantry shows up in this hex, we fire. Or, if an armor appears here, we hold fire.
Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.