Allow immediate re-targeting if an attack target becomes invalid.

This was SVN commit r12549.
This commit is contained in:
Deiz
2012-08-29 21:13:50 +00:00
parent 781ad7d520
commit 833d79445e
@@ -936,7 +936,11 @@ var UnitFsmSpec = {
// See if we can switch to a new nearby enemy
if (this.FindNewTargets())
{
// Attempt to immediately re-enter the timer function, to avoid wasting the attack.
this.TimerHandler(msg.data, msg.lateness);
return;
}
// Return to our original position
if (this.GetStance().respondHoldGround)