hedgewars/uAI.pas
changeset 13133 733f3154198c
parent 13096 d78e65c66573
child 14226 545b85c0f2e3
equal deleted inserted replaced
13131:f10f4bf5f84d 13133:733f3154198c
   472 
   472 
   473             FillBonuses(false);
   473             FillBonuses(false);
   474 
   474 
   475             // Hog has no idea what to do. Use tardis or skip
   475             // Hog has no idea what to do. Use tardis or skip
   476             if not bonuses.activity then
   476             if not bonuses.activity then
   477                 if ((HHHasAmmo(Me^.Hedgehog^, amTardis) > 0)) and (CanUseTardis(Me^.Hedgehog^.Gear)) and (random(4) < 3) then
   477                 if (((GameFlags and gfInfAttack) <> 0) or (not isInMultiShoot)) and ((HHHasAmmo(Me^.Hedgehog^, amTardis) > 0)) and (CanUseTardis(Me^.Hedgehog^.Gear)) and (random(4) < 3) then
   478                     // Tardis brings hog to a random place. Perfect for clueless AI
   478                     // Tardis brings hog to a random place. Perfect for clueless AI
   479                     begin
   479                     begin
   480                     AddAction(BestActions, aia_Weapon, Longword(amTardis), 80, 0, 0);
   480                     AddAction(BestActions, aia_Weapon, Longword(amTardis), 80, 0, 0);
   481                     AddAction(BestActions, aia_attack, aim_push, 10, 0, 0);
   481                     AddAction(BestActions, aia_attack, aim_push, 10, 0, 0);
   482                     AddAction(BestActions, aia_attack, aim_release, 10, 0, 0);
   482                     AddAction(BestActions, aia_attack, aim_release, 10, 0, 0);