From f076b376201db2ab5bc48f5f312f949086275f92 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 2 May 2016 12:53:55 +0100 Subject: [PATCH] If your target is disabled, just shoot it. --- src/battle/ai.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/battle/ai.c b/src/battle/ai.c index e67d42c..20c2b1a 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -194,7 +194,8 @@ static void doFighterAI(void) return; } - r = rand() % 100; + /* if your target is disabled, just shoot it..! */ + r = (self->target->flags & EF_DISABLED) ? 100 : rand() % 100; if (r <= getActionChance(AI_EVADE)) {