 Complete the following phrase:  During 1917 the 3rd Division operated in the Ypres sector in Belgium, with the battalion taking part in the battle at Messines in June, Warneton in late July, Broodseinde in early October, and then at Passchendaele on 12 October where it sustained heavy casualties, mainly due to German gas attacks. The battalion remained in Belgium for the following five months, rotating between the front and rear areas. In March 1918, it moved to France to help blunt the German spring offensive, repelling a German attack around Morlancourt. During the lull that followed, the battalion was subsequently involved in the Battle of Hamel on 4 July 1918. When the Allies launched their own 