diff --git a/data/campaigns/tutorial/scenarios/01_Tutorial_part_1.cfg b/data/campaigns/tutorial/scenarios/01_Tutorial_part_1.cfg index 56f6f8b730ef..686c46b5774d 100644 --- a/data/campaigns/tutorial/scenarios/01_Tutorial_part_1.cfg +++ b/data/campaigns/tutorial/scenarios/01_Tutorial_part_1.cfg @@ -208,14 +208,14 @@ You are standing on the keep, and your mentor Delfador is on the east side of th [lua] code= << - local unit = wesnoth.get_units({id = "student"})[1] - local hp_diff = unit.max_hitpoints - unit.hitpoints + local unit = wesnoth.get_units({id = "student"})[1] + local hp_diff = unit.max_hitpoints - unit.hitpoints - if hp_diff > 7 then hp_diff = 8 end + if hp_diff > 7 then hp_diff = 8 end - wesnoth.set_variable("student_hp", unit.hitpoints) - wesnoth.set_variable("student_hp_heal_amount", hp_diff) - >> + wesnoth.set_variable("student_hp", unit.hitpoints) + wesnoth.set_variable("student_hp_heal_amount", hp_diff) + >> [/lua] [/event]