add duration= key to [unit_overlay]

This commit is contained in:
gfgtdf 2019-08-16 15:41:14 +02:00
parent 5442d922c4
commit ce5696f334

View file

@ -361,6 +361,7 @@ function wml_actions.unit_overlay(cfg)
if has_already == false then
u:add_modification("object", {
id = cfg.object_id or get_overlay_object_id(img),
duration = cfg.duration,
wml.tag.effect {
apply_to = "overlay",
add = img,