What is the difference between past perfect tense and past perfect continuous tense?
The continuous tense is used to emphasize the duration of one of the events. For example:
When I woke up yesterday the ground was wet. In the night it had been raining for three hours.
The continuous form had been raining suggests the duration of the rain.