ACF6: Dismiss enemy teams on victory, just in case
authorWuzzy <Wuzzy2@mail.ru>
Sun, 26 May 2019 17:53:14 +0200
changeset 15064 5b245e8ed578
parent 15063 0358a907b8f4
child 15065 9dbbb4bc1dcd
ACF6: Dismiss enemy teams on victory, just in case
share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua	Sun May 26 17:40:38 2019 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua	Sun May 26 17:53:14 2019 +0200
@@ -499,6 +499,7 @@
   end
   RestoreHedge(cyborg)
   DeleteGear(cyborg)
+  DismissTeam(fighterTeamName) -- just in case
   EndTurn(true)
 end
 
@@ -529,7 +530,7 @@
 function CyborgDeadReact()
   freshDead = nil
   if cyborgsLeft == 0 then
-    if not cratesTaken then
+    if (not cratesTaken) and (not CheckMissionFinished()) then
        AnimSay(native, loc("I still have to get rid of the crates."), SAY_THINK, 8000)
     end
     return