hedgewars/uAI.pas
changeset 15729 26c6e5325075
parent 15714 e55c4bad720a
child 15761 94f4d0a96143
equal deleted inserted replaced
15728:f2930fe1b6d0 15729:26c6e5325075
   263                                 begin
   263                                 begin
   264                                 AddAction(BestActions, aia_attack, aim_push, 150, 0, 0);
   264                                 AddAction(BestActions, aia_attack, aim_push, 150, 0, 0);
   265                                 AddAction(BestActions, aia_attack, aim_release, ap.Power, 0, 0);
   265                                 AddAction(BestActions, aia_attack, aim_release, ap.Power, 0, 0);
   266                                 end;
   266                                 end;
   267                             if (a = amResurrector) and (BotLevel < 4) then
   267                             if (a = amResurrector) and (BotLevel < 4) then
       
   268                                 begin
   268                                 AddAction(BestActions, aia_Up, aim_release, ap.Power, 0, 0);
   269                                 AddAction(BestActions, aia_Up, aim_release, ap.Power, 0, 0);
   269                             AddAction(BestActions, aia_attack, aim_release, ap.Power, 0, 0);
   270                                 AddAction(BestActions, aia_attack, aim_release, 0, 0, 0);
       
   271                                 end
       
   272                             else
       
   273                                 AddAction(BestActions, aia_attack, aim_release, ap.Power, 0, 0);
   270 
   274 
   271                             // Just for fun: 0.01% chance for kamikaze with "wishes" ;-)
   275                             // Just for fun: 0.01% chance for kamikaze with "wishes" ;-)
   272                             if (a = amKamikaze) and (random(10000) = 0) then
   276                             if (a = amKamikaze) and (random(10000) = 0) then
   273                                 begin
   277                                 begin
   274                                 AddAction(BestActions, aia_Switch, 0, 1, 0, 0);
   278                                 AddAction(BestActions, aia_Switch, 0, 1, 0, 0);