From a5676b9b4983b993814bde907ce40e93cb5893a9 Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 9 Apr 2016 13:23:10 +0100 Subject: [PATCH] Added EF_AI_IGNORE, to tell AI to ignore entities. --- src/battle/ai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }