diff --git a/src/battle/jumpgate.c b/src/battle/jumpgate.c index bab6fbf..b2fd7a9 100644 --- a/src/battle/jumpgate.c +++ b/src/battle/jumpgate.c @@ -176,7 +176,7 @@ static void handleFleeingEntities(void) for (i = 0, e = candidates[i] ; e != NULL ; e = candidates[++i]) { - if (e->health > 0 && e->flags & EF_RETREATING && getDistance(self->x, self->y, e->x, e->y) <= ESCAPE_DISTANCE) + if (e->health > 0 && (e->flags & EF_RETREATING) && getDistance(self->x, self->y, e->x, e->y) <= ESCAPE_DISTANCE) { e->alive = ALIVE_ESCAPED;