Switch Attack Bug

When you set ports in the switchAttack() menu of the attack window, port 0 does not work correctly. (It is not added to the port array). It appears as checked in the popup menu, but does not appear in the dropdown menu. Furthermore, an attack with switchAttack() seemed to have no effect on port 0. I have asked other players to test this, and they got the same results.