HttT S17: Comply with current Wesnoth Lua API specifications

wesnoth.special_locatioons is deprecated.

Resolves #6517

(cherry picked from commit 47ec300d54)
This commit is contained in:
Wedge009 2022-02-16 13:54:31 +11:00
parent b1ff723986
commit 0607f310e9

View file

@ -716,7 +716,7 @@
code= <<
local ai_helper = wesnoth.require "ai/lua/ai_helper.lua"
local delf = wesnoth.units.find_on_map { id = 'Delfador' }[1]
local sceptre_loc= wesnoth.special_locations.sceptre
local sceptre_loc= wesnoth.current.map.special_locations.sceptre
local path = wesnoth.paths.find_path(delf, sceptre_loc[1], sceptre_loc[2], {ignore_units = true, ignore_visibility = true}) -- # wmllint: noconvert
_ = wesnoth.textdomain 'wesnoth-httt'