Don't cause damage to immortal fighters.

This commit is contained in:
Steve 2016-04-01 11:39:52 +01:00
parent 2308f6ff43
commit e8f70072d5
1 changed files with 1 additions and 1 deletions

View File

@ -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);