hero::on_movement_changed not triggered
When defining
function hero:on_movement_changed(mov)
The event is never triggered. Doing
local hero_move = hero:get_movement()
function hero_move:on_changed()
is a workaround but require to wait for map:on_opening_transition finished
for the movement to be setted up.
Looking in the engine source code it appears that Hero::notify_movement_changed shadows Entity::notify_movement_changed, thus causing the bug.