infinite attack resets flags so probably should skip this
authornemo
Wed, 22 Nov 2017 17:38:47 -0500
changeset 12841 afd312fc270d
parent 12840 ad2d448bbcab
child 12842 f72c6f64c94c
infinite attack resets flags so probably should skip this
hedgewars/uGearsHedgehog.pas
--- a/hedgewars/uGearsHedgehog.pas	Sun Nov 19 22:35:16 2017 +0100
+++ b/hedgewars/uGearsHedgehog.pas	Wed Nov 22 17:38:47 2017 -0500
@@ -1252,7 +1252,7 @@
     if TagTurnTimeLeft = 0 then
         TagTurnTimeLeft:= TurnTimeLeft;
     TurnTimeLeft:= 0;
-    if (GameOver = false) and ((HHGear^.State and gstAttacked) = 0) and (HHGear^.Damage = 0) and (LuaNoEndTurnTaunts = false) then
+    if (GameOver = false) and ((GameFlags and gfInfAttack) = 0) and ((HHGear^.State and gstAttacked) = 0) and (HHGear^.Damage = 0) and (LuaNoEndTurnTaunts = false) then
         begin
         AddVoice(sndBoring, Hedgehog^.Team^.voicepack);
         if (GameFlags and gfInfAttack = 0) then