ACF2: Fix breakage when leaks kills Brainiac with 3 Deagle shots (for real)
authorWuzzy <Wuzzy2@mail.ru>
Tue, 21 May 2019 16:45:16 +0200
changeset 15044 9a8c678df7d9
parent 15043 9a7a5833fad2
child 15045 af2f6f4074de
child 15049 20c80919d97d
ACF2: Fix breakage when leaks kills Brainiac with 3 Deagle shots (for real)
share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua	Tue May 21 16:32:34 2019 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua	Tue May 21 16:45:16 2019 +0200
@@ -243,6 +243,7 @@
     AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i]))
     SetState(cannibals[i], 0)
   end
+  AnimSwitchHog(cannibals[2])
 end
 
 function AfterStronglingsAnim()
@@ -469,7 +470,7 @@
   table.insert(weaklingsAnim, {func = AnimWait, args = {leaks, 400}})
   table.insert(weaklingsAnim, {func = AnimSay, args = {cannibals[3], loc("Are we there yet?"), SAY_SAY, 4000}}) 
   table.insert(weaklingsAnim, {func = AnimSay, args = {dense, loc("This must be some kind of sorcery!"), SAY_SHOUT, 3500}})
-  table.insert(weaklingsAnim, {func = AnimSwitchHog, args = {leaks}})
+  table.insert(weaklingsAnim, {func = AnimSwitchHog, args = {cannibals[2]}})
   AddSkipFunction(weaklingsAnim, SkipWeaklingsAnim, {})
 
   table.insert(stronglingsAnim, {func = AnimGearWait, args = {leaks, 1000}})
@@ -1125,8 +1126,6 @@
     if GetHogClan(CurrentHedgehog) == GetTeamClan(weaklingsTeamName) and (not wave1EnemyTurn) then
       EndTurn(true)
       wave1EnemyTurn = true
-    else
-      SetWeapon(amNothing)
     end
   elseif stage == cyborgStage then
     if CurrentHedgehog ~= dense then