ai_helper.get_attack_combos: bug fix

Make sure it works even if the 'units' variable is an empty table
Fred calc_counter_attack: add cfg.enemies parameter (unit table)

If used, only the enemies listed in the table are used to calculate
counter attack damage.  The purpose of this is mostly to speed up
calculation time.