After getting a fair bit of coding under my belt, I decided to take a look at an old card that seemed to be broken: Grenadier. ID 511000712. And to my surprise, I actually figured out the problem. The error appears to be a simple typing slip-up. There are three locations where it says RESET_PHASE+RESET_END. If they are all changed to RESET_PHASE+PHASE_END, the card works as intended.