Fix a Lua error in [animate_unit]
This commit is contained in:
parent
bc2855ef44
commit
aa421ef698
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ local function add_animation(anim, cfg)
|
|||
)
|
||||
end
|
||||
|
||||
if unit and not wesnoth.is_fogged(wesnoth.current.side, unit.loc) then
|
||||
if unit and not wesnoth.is_fogged(wesnoth.current.side, unit.x, unit.y) then
|
||||
local primary = helper.get_child(cfg, "primary_attack")
|
||||
local secondary = helper.get_child(cfg, "secondary_attack")
|
||||
local get_attack = get_real_attack
|
||||
|
|
Loading…
Add table
Reference in a new issue