hedgewars/uAI.pas
changeset 11608 ed70d59479d7
parent 11538 00860966354d
child 11825 bb6503b9847e
--- a/hedgewars/uAI.pas	Mon Mar 14 22:04:39 2016 +0300
+++ b/hedgewars/uAI.pas	Fri Mar 18 13:27:30 2016 -0400
@@ -163,6 +163,12 @@
                             AddAction(BestActions, aia_attack, aim_push, 10, 0, 0);
                             AddAction(BestActions, aia_attack, aim_release, 10, 0, 0);
                             end;
+                        if HHHasAmmo(Me^.Hedgehog^, amVampiric) > 0 then
+                            begin
+                            AddAction(BestActions, aia_Weapon, Longword(amVampiric), 80, 0, 0);
+                            AddAction(BestActions, aia_attack, aim_push, 10, 0, 0);
+                            AddAction(BestActions, aia_attack, aim_release, 10, 0, 0);
+                            end;
                         end;
 
                     AddAction(BestActions, aia_Weapon, Longword(a), 300 + random(400), 0, 0);