# HG changeset patch # User Wuzzy # Date 1548211592 -3600 # Node ID fd22b6d474e74128f402ce301e28876dcec999b1 # Parent 38836d6c5c8a7e32b140dcfabf981b308d3d92b7 Fix AI trying to use tardis during multishoot diff -r 38836d6c5c8a -r fd22b6d474e7 hedgewars/uAI.pas --- a/hedgewars/uAI.pas Tue Jan 22 23:42:23 2019 +0100 +++ b/hedgewars/uAI.pas Wed Jan 23 03:46:32 2019 +0100 @@ -484,7 +484,7 @@ // Hog has no idea what to do. Use tardis or skip if not bonuses.activity 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 + if (((GameFlags and gfInfAttack) <> 0) or (CurrentHedgehog^.MultiShootAttacks = 0)) 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);