diff --git a/src/battle/player.c b/src/battle/player.c index 09526bc..a7481e3 100644 --- a/src/battle/player.c +++ b/src/battle/player.c @@ -295,7 +295,7 @@ static void selectTarget(void) for (e = battle.entityHead.next ; e != NULL ; e = e->next) { - if (e->active && e != player && e->type == ET_FIGHTER && e->side != player->side && e->alive == ALIVE_ALIVE) + if (e->active && e != player && e->type == ET_FIGHTER && e->side != player->side && e->alive == ALIVE_ALIVE && (!(e->flags & EF_DISABLED))) { dist = getDistance(self->x, self->y, e->x, e->y); if (dist < closest)