newfrenchy83
7d6e2b2a10
Lua API: implicitly clear animator after playing it ( #3536 )
...
This prevents the animator from holding a strong reference to the target unit, which was keeping the unit object alive and thus preventing the unit halo, if any, from disappearing.
2018-09-09 18:47:56 +03:00
Jyrki Vesterinen
e63bd35f9d
[animate_unit]: clear the animation after playing it
...
This avoids a reference to the unit from being leaked, which prevented the
unit's halo (if any) from disappearing when the unit died.
Fixes #3509 . Closes #3520 .
2018-09-06 20:16:00 +03:00
Charles Dang
0103959c36
Cleaned up deprecated API usage in core Lua
...
[ci skip]
2018-03-13 16:55:36 +11:00
Celtic Minstrel
fbeb6c5b09
Add helper.find_attack and clean up the [animate_unit] / [kill] hack regarding death / victory animations
2017-05-28 18:20:16 -04:00
Celtic Minstrel
2f0a6d13e4
Make [animate_unit] without flag an error ( fixes #1678 )
2017-05-10 17:40:16 -04:00
Celtic Minstrel
a3a84076b8
Support [primary_attack] and [secondary_attack] in [kill]
2017-05-04 19:20:43 -04:00
Celtic Minstrel
a15e6379c2
Lua: Rename wesnoth.map_location -> wesnoth.map
...
Eventually, game_lua_kernel will add additional stuff to this table.
2017-05-04 19:20:41 -04:00
Celtic Minstrel
8d4cf3cf62
Shorten requires where possible
2017-05-03 02:42:25 -04:00
Celtic Minstrel
7835e05d93
Fix [animate_unit][facing] not working.
...
This also tweaks the animator:add() API, replacing the facing key
with a target key and requiring it to be an adjacent location.
2017-04-09 01:29:10 -04:00
Celtic Minstrel
d84a52dc45
Fix incorrect API table name in [animate_unit] (GNA25550)
2017-03-12 14:49:52 -04:00
Celtic Minstrel
e107c52df4
Fix improper child_range call in [animate_unit]
2017-02-28 18:55:59 -05:00
Celtic Minstrel
b37d7233d5
[animate_unit] now defaults to hits=yes if missing
2017-02-28 16:21:16 -05:00
Celtic Minstrel
aa421ef698
Fix a Lua error in [animate_unit]
2017-02-27 13:12:21 -05:00
Charles Dang
f81392893d
Attempt to fix some errors reported by @singalen
2017-02-27 18:52:10 +11:00
Celtic Minstrel
010acd870d
Properly port [animate_unit] to Lua
2016-12-11 18:08:08 -05:00