Bugfix: Leaf Guard/Rest in Gen 4

Leaf Guard allows the use of Rest in Gen 4, but not in Gen 5. Don't ask how I found this bug, I was trying to fix something else completely unrelated. 

Also, fixes minor error with enums that probably didn't affect anything, but why have it wrong?