Skip to content

Commit

Permalink
Dark Forecast: Enemies that spawn on a village now take ownership of
Browse files Browse the repository at this point in the history
that village.

Fixes #3890
  • Loading branch information
jostephd committed Feb 9, 2019
1 parent 2f54ecb commit 05cd152
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/multiplayer/scenarios/2p_Dark_Forecast.lua
Expand Up @@ -239,6 +239,7 @@ local function place_units(unittypes, x, y)
})
local dst_x, dst_y = wesnoth.find_vacant_tile(x, y, u)
u:to_map(dst_x, dst_y)
wesnoth.set_village_owner(dst_x, dst_y, 1)

This comment has been minimized.

Copy link
@ProditorMagnus

ProditorMagnus Feb 9, 2019

Contributor

Any reason to not set it to side of u?

This comment has been minimized.

Copy link
@jostephd

jostephd Feb 9, 2019

Author Member

I tried that first but then the village didn't get flagged.

This comment has been minimized.

Copy link
@gfgtdf

gfgtdf Feb 9, 2019

Contributor

that's because onyl side1 has defeat_condition=never which allow it to take villages, if unit of 'dead' sides takeover a village they just unflag it.

end
end

Expand Down

0 comments on commit 05cd152

Please sign in to comment.