adds checks for climbing and prev_state
prevents attacking while climbing
Merge pull request #1514 from CalebJohn/states

Fix climbing bug