If you are hit by an attack that does three points of damage, you suffer three points of damage. That your ship is destroyed by the first damage card you are dealt for that attack is irrelevant to how much damage you suffered. Think of it as being shot three times. The first bullet hit you in the heart and killed you, but that doesn't change the fact that you were shot three times.