ACF, mission 3: Fix Lua error when Leaks a Lot dies at the beginning
authorWuzzy <almikes@aol.com>
Fri, 28 Apr 2017 02:50:23 +0200
changeset 12373 b43c00e36369
parent 12372 35e76306b016
child 12374 ad481d9d48fb
ACF, mission 3: Fix Lua error when Leaks a Lot dies at the beginning
share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua	Fri Apr 28 02:45:19 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua	Fri Apr 28 02:50:23 2017 +0200
@@ -1055,7 +1055,7 @@
     TurnTimeLeft = -1
   elseif GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then
     for i = 1, 4 do
-      if cannibalDead[i] ~= true then
+      if cannibalDead[i] ~= true and leaksDead ~= true then
         if GetX(cannibals[i]) < GetX(leaks) then
           HogTurnLeft(cannibals[i], false)
         else