mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-24 11:53:36 +00:00
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:
@@ -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 ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user