From 5ffc0e4be4d8f85a1484b4bddbb843208f38aaa0 Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 21 Nov 2015 17:36:55 +0000 Subject: [PATCH] Don't damage immortal fighters. --- src/battle/bullets.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/battle/bullets.c b/src/battle/bullets.c index 16d99a1..0e56e9b 100644 --- a/src/battle/bullets.c +++ b/src/battle/bullets.c @@ -143,7 +143,10 @@ static void checkCollisions(Bullet *b) battle.stats[STAT_SHOTS_HIT]++; } - damageFighter(e, b->damage, b->flags); + if (!(e->flags & EF_IMMORTAL)) + { + damageFighter(e, b->damage, b->flags); + } b->life = 0; b->damage = 0;