# HG changeset patch # User Wuzzy # Date 1554682971 -7200 # Node ID b3fa6a19fc25c2175218c45f815ec675d8015fb5 # Parent 4deba377799e4228830c47d35a5c73fae1ae84c3 Computer hog no longer walks into player-placed mines if >= 90% duds diff -r 4deba377799e -r b3fa6a19fc25 hedgewars/uAIMisc.pas --- a/hedgewars/uAIMisc.pas Mon Apr 08 00:59:08 2019 +0200 +++ b/hedgewars/uAIMisc.pas Mon Apr 08 02:22:51 2019 +0200 @@ -241,7 +241,7 @@ gtMine: begin if (Gear^.State and gstMoving) <> 0 then bonuses.activity:= true; - if ((Gear^.State and gstAttacking) = 0) and (((cMineDudPercent < 90) and (Gear^.Health <> 0)) + if ((Gear^.State and gstAttacking) = 0) and (((cMineDudPercent < 90) or ((Gear^.State and gstWait) <> 0) and (Gear^.Health <> 0)) or (isAfterAttack and (Gear^.Health = 0) and (Gear^.Damage > 30))) then AddBonus(hwRound(Gear^.X), hwRound(Gear^.Y), 50, -50) else if (Gear^.State and gstAttacking) <> 0 then