diff --git a/src/entities/cannons/cannon.c b/src/entities/cannons/cannon.c index 945ffec..f5a2b0a 100644 --- a/src/entities/cannons/cannon.c +++ b/src/entities/cannons/cannon.c @@ -119,7 +119,7 @@ static void die2(void) addExplosion(u->x, u->y, 50, self); } - if (u->health <= -50) + if (u->alive == ALIVE_DYING && u->health <= -50) { updateObjective(u->name); updateObjective("ENEMY"); diff --git a/src/entities/evilBlobs/evilBlob.c b/src/entities/evilBlobs/evilBlob.c index 6f667a7..5d044b2 100644 --- a/src/entities/evilBlobs/evilBlob.c +++ b/src/entities/evilBlobs/evilBlob.c @@ -64,7 +64,7 @@ static void die2(void) u->health = -FPS; } - if (u->health <= -FPS && (u->isOnGround || u->environment != ENV_AIR)) + if (u->alive == ALIVE_DYING && u->health <= -FPS && (u->isOnGround || u->environment != ENV_AIR)) { dropCarriedItem();