From 04d196af7fc5958040e9fb2f4725617027e6168d Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 16 Nov 2015 16:25:28 +0000 Subject: [PATCH] Player target select will never choose disabled targets. --- src/battle/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)