Okay, maybe I'm being stupid, but if the AP kicks on after the counter reaches 24, wouldn't fixing it just require adding some code that tells the game to set the counter to zero constantly, or something similar? It doesn't seem like it should be too hard.
Also, I think exiting a battle adds...