Have an instance variable for your bullet called "ownerUID".
on fire ->
player spawn bullet
set bullet variable ownerUID to player.UID
bullet on collide with player
if player.uid not equal to bullet.ownerUID ->
deal damage
Develop games in your browser. Powerful, performant & highly capable.