Crash fighting Horde

v0.5.7 Windows.

Itherian realm. If I remember correctly, it was : Immune to Spell, Immune to sorcery, 230% damage.
In a fight against a Horde nemesis : there were only 3 creatures left, it crashed when I attacked a “poison mask” creature (Trait is like ‘When attacking a creature with poison, deal 5 times the damage of it and debuff the poison’).

Log :
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_battlecontroller:

Unable to find any instance for object index ‘123683’ name ‘’
at gml_Script_bc_GetAlliesOf
############################################################################################

stack frame is
gml_Script_bc_GetAlliesOf (line -1)
gml_Script_scr_CritHasPassive
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_Turn
gml_Object_obj_battlecontroller_Step_0

My team, if needed :
3 Moon Hunter (1 switch to Sorcery race via the morph gem and the nature perk)
2 Light Hunter (1 switch to Death race)
1 Minotaur Battlemaster

Similar crash, in a normal realm. Was time for the enemy to spawn a new creature or two.


############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_battlecontroller:

Unable to find any instance for object index ‘139573’ name ‘’
at gml_Script_bc_GetAlliesOf
############################################################################################

stack frame is
gml_Script_bc_GetAlliesOf (line -1)
gml_Script_scr_CritHasPassive
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_Turn
gml_Object_obj_battlecontroller_Step_0

Thanks, found the problem and uploading a patch now since this appears to be really common!