share/hedgewars/Data/Scripts/Multiplayer/WxW.lua
changeset 12287 faf1b93422ba
parent 12232 6bf9229c5c1f
child 12624 705dde538519
equal deleted inserted replaced
12286:b4dde7035fe2 12287:faf1b93422ba
  1326 		teamsAttacked = {}
  1326 		teamsAttacked = {}
  1327 
  1327 
  1328 		-- Was the team violating the attackRule the last time?
  1328 		-- Was the team violating the attackRule the last time?
  1329 		if getTeamValue(teamName, "skipPenalty") then
  1329 		if getTeamValue(teamName, "skipPenalty") then
  1330 			-- Then take away this turn
  1330 			-- Then take away this turn
  1331 			AddCaption(string.format(loc("%s must skip this turn for rule violation ."), teamName), msgColorWarn, capgrpMessage)
  1331 			AddCaption(string.format(loc("%s must skip this turn for rule violation."), teamName), msgColorWarn, capgrpMessage)
  1332 			TurnTimeLeft = 0
  1332 			EndTurn(true)
  1333 			setTeamValue(teamName, "skipPenalty", false)
  1333 			setTeamValue(teamName, "skipPenalty", false)
  1334 		end
  1334 		end
  1335 
  1335 
  1336 	else
  1336 	else
  1337 		allowCrate = false
  1337 		allowCrate = false