Fix a Lua error in [animate_unit]

This commit is contained in:
Celtic Minstrel 2017-02-27 13:11:27 -05:00
parent bc2855ef44
commit aa421ef698

View file

@ -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