diff -r 20dbb3a03e61 -r 31f7e0a31736 hedgewars/uAI.pas --- a/hedgewars/uAI.pas Wed Oct 18 20:33:20 2017 -0400 +++ b/hedgewars/uAI.pas Fri Oct 20 13:27:48 2017 +0200 @@ -31,7 +31,8 @@ implementation uses uConsts, SDLh, uAIMisc, uAIAmmoTests, uAIActions, uAmmos, uTypes, - uVariables, uCommands, uUtils, uDebug, uAILandMarks; + uVariables, uCommands, uUtils, uDebug, uAILandMarks, + uGearsUtils; var BestActions: TActions; CanUseAmmo: array [TAmmoType] of boolean; @@ -473,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 (random(3) < 1) then + if ((HHHasAmmo(Me^.Hedgehog^, amTardis) > 0)) and (CanUseTardis(Me^.Hedgehog^.Gear)) and (random(3) < 1) then // Tardis brings hog to a random place. Perfect for clueless AI begin AddAction(BestActions, aia_Weapon, Longword(amTardis), 80, 0, 0);