Crash on spell cast or enemy ondeath


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

Variable obj_battlecontroller.caster(100366, -2147483648) not set before reading it.
at gml_Script_bc_OnDeath
############################################################################################

stack frame is
gml_Script_bc_OnDeath (line 0)
gml_Script_bc_ExecuteEvents
gml_Object_obj_battlecontroller_Step_0

The game crashed when I cast a AoE spell killing a pack of enemies that possibly had an ondeath effect.

Easy fix, thanks! This crash happens if a creature has the “Sacrifice to the Light” gem equipped.

I updated the description to be more clear that it was not every battle.

A fix should be up for this now. Thanks!