[animate_unit] now defaults to hits=yes if missing

This commit is contained in:
Celtic Minstrel 2017-02-28 16:21:16 -05:00
parent f52d6499dc
commit b37d7233d5

View file

@ -52,7 +52,7 @@ local function add_animation(anim, cfg)
end
local hits = cfg.hits
if hits == true then
if hits == true or hits == nil then
hits = 'hit'
elseif hits == false then
hits = 'miss'