diff --git a/atlantis_dlg.lua b/atlantis_dlg.lua --- a/atlantis_dlg.lua +++ b/atlantis_dlg.lua @@ -1693,6 +1693,13 @@ char_learr_atlantis_dlg = dlg { nam = "Леарр"; disp = "Леарр"; enter = function(s) + poff('iyh1', 'iyh2'); + if (atl_iyh_state == 1 and not atl_iyh_learr_spoken) then + pon('iyh1'); + elseif (atl_iyh_state == 2 and ArrayUtils.indexOf(pl.party, 'learr') == 0) then + pon('iyh2'); + end; + if (atl_lfc_state == 1 and not s.lfc_dialog) then s.lfc_dialog = true; pon('sabotage', 'ignis_what'); @@ -1723,12 +1730,6 @@ char_learr_atlantis_dlg = dlg { if (char_learr.on_books < 2) then pon("on_books") end; end; - poff('iyh1', 'iyh4', 'iyh5'); - if (atl_iyh_state == 1 and not atl_iyh_learr_spoken) then - pon('iyh1'); - elseif (atl_iyh_state == 2 and ArrayUtils.indexOf(pl.party, 'learr') == 0) then - pon('iyh2'); - end; psub("generic"); if (rel_learr > 0) then return [[Леарр поворачивается к вам, плавники ее принимают сине-зеленый оттенок, а она говорит: "Я рада-видеть тебя". ]];