e
authorDebian Games Team <pkg-games-devel@lists.alioth.debian.org>
Fri, 4 Jan 2019 20:07:05 +0000 (20:07 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Fri, 4 Jan 2019 20:07:05 +0000 (20:07 +0000)
# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1543938523 -3600
# Node ID 02841325495e2f08fa23919f635bf9ad9010cb7f
# Parent  8abdf15da0988fe25db1821200274158f7b884bd
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

Gbp-Pq: Name 02841325495e.patch

share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua

index b532753c2571ef6cf82e34a0902e1db283b4c43e..d63bb5227945414e60b6ae015445907a69cdc49b 100644 (file)
@@ -588,7 +588,7 @@ function DoChallengeFailed()
   SetGearMessage(CurrentHedgehog, 0)
   AddAnim(challengeFailedAnim)
   chalTries = chalTries + 1
-  difficulty = 0
+  difficulty = 1
   AddFunction({func = SetChoice, args = {}})
 end