diff --git a/src/battle/bullets.c b/src/battle/bullets.c index 3be3712..acc7f9c 100644 --- a/src/battle/bullets.c +++ b/src/battle/bullets.c @@ -182,11 +182,13 @@ static void checkCollisions(Bullet *b) battle.stats[STAT_ROCKETS_HIT]++; } } - - if (!(e->flags & EF_IMMORTAL)) + + if (e->flags & EF_IMMORTAL) { - damageFighter(e, b->damage, b->flags); + b->damage = 0; } + + damageFighter(e, b->damage, b->flags); b->life = 0; b->damage = 0;