Tiny fix to the "unit AI" in the damage event handler to make ranged units fight back when attacked.

This was SVN commit r3423.
This commit is contained in:
Matei
2006-01-24 11:08:53 +00:00
parent 7838627cd2
commit 83ccd72798
@@ -577,7 +577,7 @@ function damage( dmg, inflictor )
// You know, I think this is quite possibly the first AI code the AI divlead has written
// for 0 A.D....
if( this.isIdle() )
this.order( ORDER_GENERIC, inflictor, ACTION_ATTACK );
this.order( ORDER_GENERIC, inflictor, getAttackAction( this, inflictor ) );
}
}