Add missing roundDraw check in TechRacer
authorWuzzy <Wuzzy2@mail.ru>
Wed, 05 Sep 2018 20:09:32 +0200
changeset 13772 219c2e588874
parent 13768 2fceeea62b10
child 13862 b2cc4e4e380c
Add missing roundDraw check in TechRacer
share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Wed Sep 05 15:37:50 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Wed Sep 05 20:09:32 2018 +0200
@@ -481,7 +481,7 @@
 
 		-- Kill all the losers
 		for i = 0, (numhhs-1) do
-			if GetHogClan(hhs[i]) ~= bestClan then
+			if GetHogClan(hhs[i]) ~= bestClan or roundDraw then
 				SetEffect(hhs[i], heResurrectable, 0)
 				SetHealth(hhs[i],0)
 			end