SotBE S6: discover units placed with lua

The engine does not do this by itself
(which would be a better soultion)

closes #3813
[ci skip]
This commit is contained in:
Severin Glöckner 2019-01-05 03:15:26 +01:00
parent 432efbac9a
commit fba83e70e9

View file

@ -216,10 +216,12 @@ function wesnoth.custom_synced_commands.ship_unload(cfg)
local l2_type = helper.rand('Swordsman,Javelineer,Pikeman')
wesnoth.put_unit({ side = wesnoth.current.side, type = l2_type, moves = 2 }, locs[1].x, locs[1].y)
wesnoth.add_known_unit(l2_type)
for i = 2, #locs do
local l1_type = helper.rand('Fencer,Mage,Cavalryman,Bowman,Spearman')
wesnoth.put_unit({ side = wesnoth.current.side, type = l1_type, moves = 2 }, locs[i].x, locs[i].y)
wesnoth.add_known_unit(l1_type)
end
end