diff --git a/src/entities/blobs/bob.c b/src/entities/blobs/bob.c index 3f965a5..73a6137 100644 --- a/src/entities/blobs/bob.c +++ b/src/entities/blobs/bob.c @@ -177,7 +177,7 @@ static void doAlive(void) { world.bob->outTimer = FPS * 3; world.bob->stunTimer = 1; - if (world.bob->flags & EF_IMMUNE) + if (!(world.bob->flags & EF_IMMUNE)) { world.bob->health--; } @@ -189,7 +189,7 @@ static void doAlive(void) { world.bob->outTimer = FPS * 3; world.bob->stunTimer = 1; - if (world.bob->flags & EF_IMMUNE) + if (!(world.bob->flags & EF_IMMUNE)) { world.bob->health -= 2; }