hedgewars/uAI.pas
changeset 13133 733f3154198c
parent 13096 d78e65c66573
child 14226 545b85c0f2e3
--- a/hedgewars/uAI.pas	Thu Mar 08 21:58:59 2018 +0100
+++ b/hedgewars/uAI.pas	Thu Mar 08 23:36:16 2018 +0100
@@ -474,7 +474,7 @@
 
             // Hog has no idea what to do. Use tardis or skip
             if not bonuses.activity then
-                if ((HHHasAmmo(Me^.Hedgehog^, amTardis) > 0)) and (CanUseTardis(Me^.Hedgehog^.Gear)) and (random(4) < 3) then
+                if (((GameFlags and gfInfAttack) <> 0) or (not isInMultiShoot)) and ((HHHasAmmo(Me^.Hedgehog^, amTardis) > 0)) and (CanUseTardis(Me^.Hedgehog^.Gear)) and (random(4) < 3) then
                     // Tardis brings hog to a random place. Perfect for clueless AI
                     begin
                     AddAction(BestActions, aia_Weapon, Longword(amTardis), 80, 0, 0);