Mutant: Fix turn skip of next hog after mutating when TurnTimeLeft = 0
authorWuzzy <almikes@aol.com>
Thu, 15 Jun 2017 15:50:23 +0200
changeset 12435 c461a224ec09
parent 12434 90e43d1bcd5b
child 12436 031af5544333
Mutant: Fix turn skip of next hog after mutating when TurnTimeLeft = 0
share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Thu May 18 00:57:15 2017 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Thu Jun 15 15:50:23 2017 +0200
@@ -539,7 +539,9 @@
 
     AddCaption(string.format(loc("%s has mutated! +2 points"), getGearValue(gear, "Name")), GetClanColor(GetHogClan(gear)), capgrpMessage)
 
-    EndTurn(true)
+    if TurnTimeLeft > 0 then
+        EndTurn(true)
+    end
 
     AddVisualGear(GetX(gear), GetY(gear), vgtSmokeRing, 0, false)
     AddVisualGear(GetX(gear), GetY(gear), vgtSmokeRing, 0, false)