[12702] Add additional miscValue to AIEvent throwing (original author @Schmoozerd), also fixed compile