share/hedgewars/Data/Missions/Scenario/portal.lua
changeset 14471 734a7af2dfc2
parent 14406 6c21bd8547dd
child 14487 d4aa64f51c9f
--- a/share/hedgewars/Data/Missions/Scenario/portal.lua	Tue Dec 18 18:26:13 2018 +0100
+++ b/share/hedgewars/Data/Missions/Scenario/portal.lua	Tue Dec 18 18:37:58 2018 +0100
@@ -202,3 +202,8 @@
 	end
 end
 
+function onGameResult(winningClan)
+	if winningClan == GetHogClan(player) then
+		SaveMissionVar("Won", "true")
+	end
+end