From e8f70072d579d13a1a6b7f74daca3316bd8f9dd8 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 1 Apr 2016 11:39:52 +0100 Subject: [PATCH] Don't cause damage to immortal fighters. --- src/battle/mine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle/mine.c b/src/battle/mine.c index 6d4403f..99e6265 100644 --- a/src/battle/mine.c +++ b/src/battle/mine.c @@ -114,7 +114,7 @@ static void doSplashDamage(void) for (i = 0, e = candidates[i] ; e != NULL ; e = candidates[++i]) { - if (e->health > 0 && e->type == ET_FIGHTER) + if (e->health > 0 && e->type == ET_FIGHTER && !(e->flags & EF_IMMORTAL)) { dist = getDistance(self->x, self->y, e->x, e->y);