Poking your head out from behind cover while people are shooting at you is a great way to get shot. And sitting blissfully unaware on a log while snipers take careful aim at you is an even better way to get shot.
It's extremely fortunate for Leia in this scene that the stormtroopers can't hit any organic being they shoot at, even when given the luxury of a completely unsuspecting target and plenty of time to aim.
Transcript
Wicket: I hear some troopers. Hey guys! Are you coming to the sem—
Leia: No—
[SFX]: Pow!
Leia: I take cover!
GM: You dive behind this tree trunk.
GM: The forest is eerily silent.
Leia: I take a peek to see who's out there.
[SFX]: Pow!
Leia: Right, I'll return fire.
GM: You don't see anything.
Trooper 5: {behind Leia} Sorry, but I think I have you at a disadvantage. Your blaster, please.
Leia: Wait, what will you trade me for it?
Trooper 5: I won't shoot you in the face.
Leia: Fair exchange, then.