ACF1: Hide Cannibals team before it appears
authorWuzzy <Wuzzy2@mail.ru>
Fri, 09 Mar 2018 12:55:54 +0100
changeset 13146 8f2260eeb726
parent 13145 e330feceb662
child 13147 39aa98d01e80
ACF1: Hide Cannibals team before it appears
share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua	Fri Mar 09 12:43:36 2018 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua	Fri Mar 09 12:55:54 2018 +0100
@@ -612,7 +612,7 @@
   targsWave = targsWave + 1
   if targsWave > 3 then
     RemoveEventFunc(CheckTargetsKilled)
-    SetState(cannibal, gstVisible)
+    RestoreHog(cannibal)
     cannibalVisible = true
     SetGearMessage(CurrentHedgehog, 0)
     AddAnim(beforeKillAnim)
@@ -754,7 +754,7 @@
   TurnTimeLeft = -1
   FollowGear(youngh)
 	ShowMission(loc("A Classic Fairytale"), loc("First Blood"), loc("Finish your training|Hint: Animations can be skipped with the [Precise] key."), -amSkip, 0)
-  SetState(cannibal, gstInvisible)
+  HideHog(cannibal)
 
   AddAnim(startDialogue)
   princessFace = "Right"
@@ -842,7 +842,7 @@
 
 function onNewTurn()
   if CurrentHedgehog == cannibal and cannibalVisible == false then
-    SetState(cannibal, gstInvisible)
+    RestoreHog(cannibal)
   end
   SwitchHog(youngh)
   FollowGear(youngh)
@@ -862,7 +862,6 @@
   elseif gear == cannibal then
     cannibalVisible = true
     cannibalDamaged = true
-    SetState(cannibal, 0)
   end
 end