If your target is disabled, just shoot it.

This commit is contained in:
Steve 2016-05-02 12:53:55 +01:00
parent 4abec11dfd
commit f076b37620
1 changed files with 2 additions and 1 deletions

View File

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