Consolidated code for walkingflame and swalking flame, added new dormant state