Client code for melee attack