if the console works, type the following line in it: @startThread(TrialBF)
if not, you can send me your save file; I don't have the previous version of the map saved.
I lost the battle, but Khabelekh was still frozen by the Devil (a cutscene was shown), and then "You lost."
I also noticed something else: after Khabelekh's betrayal, if I was attacked, I would have reinforcement units appear in the battle (various undead and demons). But if I attack first, the enemy gets them.