Effects of flooding on trees