share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 12610 dd0fb5b15567
parent 12554 194b00c4ba07
child 12611 fb0734d5dd87
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua	Sat Sep 30 04:03:08 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua	Sat Sep 30 04:26:40 2017 +0200
@@ -615,7 +615,10 @@
   AddEvent(CheckChoice, {}, DoChoice, {}, 0)
   AddEvent(CheckKilledOther, {}, DoKilledOther, {}, 0)
   AddEvent(CheckChoiceRefuse, {}, DoChoiceRefuse, {}, 0)
-  ShowMission(loc("Backstab"), loc("Judas"), loc("Kill the traitor...or spare his life!|Kill him or press [Precise]!"), 1, 8000)
+  ShowMission(loc("Backstab"), loc("Judas"),
+    string.format(loc("Kill the traitor, %s, or spare his life!"), GetHogName(spyHog)) .. "|" ..
+    loc("Kill him or skip your turn."),
+    1, 8000)
 end
 
 -----------------------------Events------------------------------------
@@ -1106,7 +1109,10 @@
     SetAnimSkip(true)
     return
   end
-  if stage == spyKillStage then
+end
+
+function onHogAttack(ammoType)
+  if stage == spyKillStage and ammoType == amSkip then
     highJumped = true
   end
 end