work save (fix some battle code error)