Player target select will never choose disabled targets.

This commit is contained in:
Steve 2015-11-16 16:25:28 +00:00
parent 91a2cda540
commit 04d196af7f
1 changed files with 1 additions and 1 deletions

View File

@ -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)