mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 20:12:25 +00:00
Dark Forecast: Enemies that spawn on a village now take ownership of
that village. Fixes #3890
This commit is contained in:
parent
2f54ecbc53
commit
05cd1521ff
@ -239,6 +239,7 @@ local function place_units(unittypes, x, y)
|
|||||||
})
|
})
|
||||||
local dst_x, dst_y = wesnoth.find_vacant_tile(x, y, u)
|
local dst_x, dst_y = wesnoth.find_vacant_tile(x, y, u)
|
||||||
u:to_map(dst_x, dst_y)
|
u:to_map(dst_x, dst_y)
|
||||||
|
wesnoth.set_village_owner(dst_x, dst_y, 1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user