If your target is disabled, just shoot it.
This commit is contained in:
parent
4abec11dfd
commit
f076b37620
|
@ -194,7 +194,8 @@ static void doFighterAI(void)
|
||||||
return;
|
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))
|
if (r <= getActionChance(AI_EVADE))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue