Movement training: Show damage message only after passing certain point
authorWuzzy <Wuzzy2@mail.ru>
Sat, 15 Dec 2018 00:29:56 +0100
changeset 14452 df065d68e513
parent 14451 bb7f22cb0b64
child 14453 09bfe9df51e9
Movement training: Show damage message only after passing certain point
share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua	Sat Dec 15 00:26:17 2018 +0100
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua	Sat Dec 15 00:29:56 2018 +0100
@@ -403,7 +403,7 @@
 end
 
 function onGearDamage(gear)
-	if GetGearType(gear) == gtHedgehog and tookDamage == false then
+	if GetGearType(gear) == gtHedgehog and tookDamage == false and GetX(gear) > 1362 then
 		ShowMission(loc("Basic Movement Training"), loc("Fall Damage"), loc("Ouch! You just took fall damage.").."|"..
 		loc("Better get yourself another health crate to heal your wounds."), 2, 5000)
 		tookDamage = true