share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/queen.lua
changeset 12575 0fb15ad40595
parent 12560 d51ea6ac1ca1
child 12787 389453e1e09e
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/queen.lua	Thu Sep 28 02:00:40 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/queen.lua	Thu Sep 28 02:42:10 2017 +0200
@@ -539,12 +539,14 @@
 end
 
 function DoLeaderDead()
-  leaderDead = true
-  SetGearMessage(CurrentHedgehog, 0)
-  SetupLeaderDeadAnim()
-  AddAnim(leaderDeadAnim)
-  AddFunction({func = AfterLeaderDeadAnim, args = {}})
-  RemoveEventFunc(CheckTurnsOver)
+  if enemyFled ~= "1" then
+    leaderDead = true
+    SetGearMessage(CurrentHedgehog, 0)
+    SetupLeaderDeadAnim()
+    AddAnim(leaderDeadAnim)
+    AddFunction({func = AfterLeaderDeadAnim, args = {}})
+    RemoveEventFunc(CheckTurnsOver)
+  end
 end
 
 function CheckGearsDead(gearList)