Fix a compile error, support for battle map testing plugin