share/hedgewars/Data/Scripts/Multiplayer/WxW.lua
changeset 12287 faf1b93422ba
parent 12232 6bf9229c5c1f
child 12624 705dde538519
--- a/share/hedgewars/Data/Scripts/Multiplayer/WxW.lua	Wed Apr 19 17:50:31 2017 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/WxW.lua	Wed Apr 19 20:21:15 2017 +0200
@@ -1328,8 +1328,8 @@
 		-- Was the team violating the attackRule the last time?
 		if getTeamValue(teamName, "skipPenalty") then
 			-- Then take away this turn
-			AddCaption(string.format(loc("%s must skip this turn for rule violation ."), teamName), msgColorWarn, capgrpMessage)
-			TurnTimeLeft = 0
+			AddCaption(string.format(loc("%s must skip this turn for rule violation."), teamName), msgColorWarn, capgrpMessage)
+			EndTurn(true)
 			setTeamValue(teamName, "skipPenalty", false)
 		end