C: more work on sim_attacks()