An mysterious Bug

I used Holy Bulwark like the 1000 times before, but this time the game crashes and this pops up:


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

Variable obj_artifact.(100059, -2147483648) not set before reading it.
at gml_Script_bc_GetAlliesOf
############################################################################################

stack frame is
gml_Script_bc_GetAlliesOf (line -1)
gml_Script_scr_CritHasPassive
gml_Script_scr_CritHasCondition
gml_Script_crit_attack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_ArtificialIntelligence
gml_Script_bc_Turn
gml_Object_obj_battlecontroller_Step_0

Version: 0.00.41

Realm: 30 (Bossfight)

Creature who casts Holy Bulwark: Planetary Amaranth via the command “Cast”

I tried again to fight the boss at Realm Depth 30, this time I used “Rain of Blood” and this pops up:


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

Variable obj_artifact.(100059, -2147483648) not set before reading it.
at gml_Script_bc_GetAlliesOf
############################################################################################

stack frame is
gml_Script_bc_GetAlliesOf (line -1)
gml_Script_scr_CritHasPassive
gml_Script_scr_CritHasCondition
gml_Script_crit_attack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_OnDodge
gml_Script_bc_CreatureAttack
gml_Script_bc_OnAttack
gml_Script_scr_AddEventToStack
gml_Script_bc_CreatureAttack
gml_Script_bc_ArtificialIntelligence
gml_Script_bc_Turn
gml_Object_obj_battlecontroller_Step_0