# HG changeset patch # User nemo # Date 1367631496 14400 # Node ID d0e5c1002fe174cddf689dfb697df652fa9ea3f9 # Parent a6ee1e7310fbeadb4fcd5e2a8f5d48ace5403c0d ignore non-hedgies here. could be useful, but Hammer needs to be taught to consider it. (hammer + explosives on a bridge could be neat) diff -r a6ee1e7310fb -r d0e5c1002fe1 hedgewars/uAIMisc.pas --- a/hedgewars/uAIMisc.pas Fri May 03 21:36:01 2013 -0400 +++ b/hedgewars/uAIMisc.pas Fri May 03 21:38:16 2013 -0400 @@ -733,9 +733,8 @@ for i:= 0 to Pred(Targets.Count) do with Targets.ar[i] do - if matters then // hammer hit radius is 8, shift is 10 - if abs(Point.x - x) + abs(Point.y - y) < 18 then + if matters and (Kind = gtHedgehog) and (abs(Point.x - x) + abs(Point.y - y) < 18) then begin r:= trunc(sqrt(sqr(Point.x - x)+sqr(Point.y - y)));