Strange battle bug

It was the first time using an Avatar and it was Torun. (By the way, he started with 89 Mana, not sure if that’s how it’s supposed to go).

After I beat all of the enemies the battle continued. When I pressed E, it crashed.


############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_battletargetselector:

trying to index a variable which is not an array
at gml_Object_obj_battletargetselector_Draw_64
############################################################################################

It’s not happening consistently.

The battle ends normally if I select Defend.

Adding an experimental fix for this in the next patch.

Isn’t this what used to happen with AI allies?