--- a/hedgewars/uAI.pas Mon Jan 27 23:44:28 2014 -0500
+++ b/hedgewars/uAI.pas Tue Jan 28 17:00:46 2014 +0400
@@ -135,6 +135,20 @@
inc(BestActions.Score, Score);
BestActions.isWalkingToABetterPlace:= false;
+ if HHHasAmmo(Me^.Hedgehog^, amInvulnerable) > 0 then
+ begin
+ AddAction(BestActions, aia_Weapon, Longword(amInvulnerable), 80, 0, 0);
+ AddAction(BestActions, aia_attack, aim_push, 10, 0, 0);
+ AddAction(BestActions, aia_attack, aim_release, 10, 0, 0);
+ end;
+
+ if HHHasAmmo(Me^.Hedgehog^, amExtraDamage) > 0 then
+ begin
+ AddAction(BestActions, aia_Weapon, Longword(amExtraDamage), 80, 0, 0);
+ AddAction(BestActions, aia_attack, aim_push, 10, 0, 0);
+ AddAction(BestActions, aia_attack, aim_release, 10, 0, 0);
+ end;
+
AddAction(BestActions, aia_Weapon, Longword(a), 300 + random(400), 0, 0);
if (ap.Angle > 0) then