shitty broken attack unit selection code