mute a wmllint false positive about unknown unit referred to by id
This commit is contained in:
parent
b271273d33
commit
2e348e8765
1 changed files with 4 additions and 3 deletions
|
@ -54,7 +54,7 @@
|
|||
H = wesnoth.require "lua/helper.lua"
|
||||
W = H.set_wml_action_metatable {}
|
||||
_ = wesnoth.textdomain "my-campaign"
|
||||
|
||||
|
||||
-- Define your global constants here.
|
||||
-- ...
|
||||
ai = {}
|
||||
|
@ -177,7 +177,7 @@
|
|||
code=<<
|
||||
ai = ...
|
||||
local my_ai = { }
|
||||
|
||||
|
||||
function my_ai:retreat()
|
||||
local urudin = wesnoth.get_units({side = 3, id="Urudin"})[1]
|
||||
if urudin and urudin.valid then
|
||||
|
@ -188,7 +188,7 @@
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return my_ai
|
||||
>>
|
||||
[/engine]
|
||||
|
@ -715,6 +715,7 @@
|
|||
y=11
|
||||
[/unit]
|
||||
|
||||
# wmllint: recognize Landar
|
||||
[unit]
|
||||
{LANDAR}
|
||||
#ifndef MULTIPLAYER
|
||||
|
|
Loading…
Add table
Reference in a new issue