The water would keep the magma at the same temperature restricting it from getting hotter keeping the temperature at melting point but not enough to turn into a flowing liquid
The lapse rate usually regarded as the environmental, variable lapse is usually affected by radiation, convection and condensation,it is 6.5°c per kilometers