The second wave came from the 18th Pennsylvania , supported by companies of the 5th New York .
Companies were also turned back under heavy rifle fire , with 20 casualties .
The second wave came from the 18th Pennsylvania , supported by companies of the 5th New York , but they were also turned back under heavy rifle fire , with 20 casualties .