Allow bullets to still hit immortal entities, but not inflict any real damage.
This commit is contained in:
parent
a5676b9b49
commit
c716f84884
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue