hedgewars/uAI.pas
changeset 15729 26c6e5325075
parent 15714 e55c4bad720a
child 15761 94f4d0a96143
--- a/hedgewars/uAI.pas	Wed Jul 08 19:11:00 2020 +0200
+++ b/hedgewars/uAI.pas	Wed Jul 08 19:46:06 2020 +0200
@@ -265,8 +265,12 @@
                                 AddAction(BestActions, aia_attack, aim_release, ap.Power, 0, 0);
                                 end;
                             if (a = amResurrector) and (BotLevel < 4) then
+                                begin
                                 AddAction(BestActions, aia_Up, aim_release, ap.Power, 0, 0);
-                            AddAction(BestActions, aia_attack, aim_release, ap.Power, 0, 0);
+                                AddAction(BestActions, aia_attack, aim_release, 0, 0, 0);
+                                end
+                            else
+                                AddAction(BestActions, aia_attack, aim_release, ap.Power, 0, 0);
 
                             // Just for fun: 0.01% chance for kamikaze with "wishes" ;-)
                             if (a = amKamikaze) and (random(10000) = 0) then