diff --git a/src/battle/ai.c b/src/battle/ai.c index 8a8ab95..8637ba1 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -330,7 +330,7 @@ static void findTarget(void) static int canAttack(Entity *e) { - if (!e->active || e->side == self->side || e->health <= 0) + if (!e->active || e->side == self->side || e->health <= 0 || (e->flags & EF_AI_IGNORE)) { return 0; }