hedgewars/uAI.pas
changeset 13101 d78e65c66573
parent 12718 927b35f59a46
child 13138 733f3154198c
--- a/hedgewars/uAI.pas	Wed Mar 07 20:27:42 2018 +0100
+++ b/hedgewars/uAI.pas	Wed Mar 07 22:47:55 2018 +0100
@@ -288,7 +288,7 @@
     AddAction(Actions, aia_Weapon, Longword(amSkip), 100 + random(200), 0, 0);
 
 if ((CurrentHedgehog^.MultiShootAttacks = 0) or ((Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NoMoveAfter) = 0))
-    and (GameFlags and gfArtillery = 0) and (cGravityf <> 0) then
+    and (CurrentHedgehog^.Effects[heArtillery] = 0) and (cGravityf <> 0) then
     begin
     tmp:= random(2) + 1;
     Push(0, Actions, Me^, tmp);