hedgewars/uAI.pas
changeset 15625 583080b0272b
parent 15624 30ad3fd974f1
child 15626 ac44dae6425e
--- a/hedgewars/uAI.pas	Sat Jun 06 20:22:57 2020 +0200
+++ b/hedgewars/uAI.pas	Sat Jun 06 20:51:12 2020 +0200
@@ -180,11 +180,10 @@
                     if (Ammoz[a].Ammo.Propz and ammoprop_Timerable) <> 0 then
                         AddAction(BestActions, aia_Timer, ap.Time div 1000, 400, 0, 0);
 
-                    // Set minimum mine bounciness for improved aim
-                    if (BotLevel < 5) and (a = amMine) then
+                    if ((Ammoz[a].Ammo.Propz and ammoprop_SetBounce) > 0) and (ap.Bounce > 0) then
                         begin
                         AddAction(BestActions, aia_Precise, aim_push, 10, 0, 0);
-                        AddAction(BestActions, aia_Timer, 1, 200, 0, 0);
+                        AddAction(BestActions, aia_Timer, ap.Bounce, 200, 0, 0);
                         AddAction(BestActions, aia_Precise, aim_release, 10, 0, 0);
                         end;