You calculate hits first, then roll stealth, for example:
You get hit by 4 phaser-1s in kill zone, 3 impact on the shields, one bypasses shields, this generates 6 hits on the shields (from killzone) and 2 rolls on the damage table. Before these are rolled, you roll for stealth. Say you get a...