ACF1: Fix Lua error when hitting Attack after failing the rope challenge 0.9.25
authorWuzzy <Wuzzy2@mail.ru>
Tue, 04 Dec 2018 16:48:43 +0100
branch0.9.25
changeset 14385 02841325495e
parent 14384 8abdf15da098
child 14386 a7769dbd7088
ACF1: Fix Lua error when hitting Attack after failing the rope challenge "difficulty" variable was falsely set to 0 in this case, but only 1 or 2 are allowed
share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua	Mon Dec 03 12:52:42 2018 -0500
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua	Tue Dec 04 16:48:43 2018 +0100
@@ -588,7 +588,7 @@
   SetGearMessage(CurrentHedgehog, 0)
   AddAnim(challengeFailedAnim)
   chalTries = chalTries + 1
-  difficulty = 0
+  difficulty = 1
   AddFunction({func = SetChoice, args = {}})
 end