Hey, just figured I'd point out a few things about your battle script macros.
jumpifsecondarystatus is misspelled jumpifsecondartstatus, and jumpifspecialstatusflag does weird things due to it having a different number of defines after the .macro compared to the .byte/.words.
jumpifsecondarystatus is misspelled jumpifsecondartstatus, and jumpifspecialstatusflag does weird things due to it having a different number of defines after the .macro compared to the .byte/.words.