2p_Dark_Forecast Fix bugs
This commit is contained in:
parent
edacf922fb
commit
89aee83bbf
1 changed files with 2 additions and 2 deletions
|
@ -251,7 +251,7 @@ local function final_spawn()
|
|||
local spawn = wesnoth.get_variable(string.format("fixed_spawn[%d]", spawn_index))
|
||||
wesnoth.set_variable(string.format("fixed_spawn[%d]", spawn_index))
|
||||
local types = {}
|
||||
for tag in wesnoth.child_range(spawn, "type") do
|
||||
for tag in helper.child_range(spawn, "type") do
|
||||
table.insert(types, tag.type)
|
||||
end
|
||||
place_units(types, spawn.x, spawn.y)
|
||||
|
@ -325,7 +325,7 @@ on_event("die", function()
|
|||
if wesnoth.current.turn < wesnoth.get_variable("final_turn") then
|
||||
return
|
||||
end
|
||||
if wesnoth.have_unit { side = "1,2"} then
|
||||
if wesnoth.wml_conditionals.have_unit { side = "1,2"} then
|
||||
return
|
||||
end
|
||||
wesnoth.wml_actions.music {
|
||||
|
|
Loading…
Add table
Reference in a new issue