Fix for shadow-based actions still continuing after leave_level (probably not only one, unfortunately...)