Yeah, any damage that the game deals just results in a heal for the pokemon that dealt it, and vice versa. So if my 160 HP pokemon uses Giga Drain on your 400 HP pokemon and deals 80 damage (20%), your pokemon loses 80 HP from the damage, I naturally heal 40 HP (25%) from the giga drain damage...