Don't damage immortal fighters.

This commit is contained in:
Steve 2015-11-21 17:36:55 +00:00
parent 693d563f27
commit 5ffc0e4be4
1 changed files with 4 additions and 1 deletions

View File

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