diff --git a/src/entities/bullets/bullet.c b/src/entities/bullets/bullet.c index 4b9c845..13ce7da 100644 --- a/src/entities/bullets/bullet.c +++ b/src/entities/bullets/bullet.c @@ -116,7 +116,7 @@ static void touch(Entity *other) b->alive = ALIVE_DEAD; - if (b->owner->type == world.bob->type) + if (b->owner->type == world.bob->type && (other->type == ET_ENEMY || other->type == ET_BOSS || other->type == ET_DESTRUCTABLE)) { game.stats[STAT_SHOTS_HIT]++; } diff --git a/src/entities/bullets/grenade.c b/src/entities/bullets/grenade.c index 6991ec6..90e3736 100644 --- a/src/entities/bullets/grenade.c +++ b/src/entities/bullets/grenade.c @@ -80,7 +80,7 @@ static void touch(Entity *other) addSmallFleshChunk(b->x, b->y); } - if (b->owner->type == world.bob->type) + if (b->owner->type == world.bob->type && (other->type == ET_ENEMY || other->type == ET_BOSS || other->type == ET_DESTRUCTABLE)) { game.stats[STAT_SHOTS_HIT]++; } diff --git a/src/entities/bullets/laser.c b/src/entities/bullets/laser.c index d7569fb..e6331da 100644 --- a/src/entities/bullets/laser.c +++ b/src/entities/bullets/laser.c @@ -72,7 +72,7 @@ static void touch(Entity *other) other->applyDamage(2); swapSelf(other); - if (b->owner->type == world.bob->type) + if (b->owner->type == world.bob->type && (other->type == ET_ENEMY || other->type == ET_BOSS || other->type == ET_DESTRUCTABLE)) { game.stats[STAT_SHOTS_HIT]++; }