This is a small (big) fix for a small (big) bug which caused random battles to stop completely just before fighting the last boss in world 3. I´m looking for a code to manually re-enable them, but in the meantime a patch which fixes the bug is up.
The nutjobs who programmed this crap need to be beaten with a tire iron. For those who are interested, the bug was caused by an extremely unlikely combination of factors, including (1) the location of one particular string in the rom, and (2) the particular method by which the string was accessed. The simple probability of any string starting at this address is one in 65535…