Weird Crash

This happened after I cleared the enemy team with WOE and my creatures were busy casting a bunch of “on death” spells despite enemies being dead already. This is the typical behavior of my Woe based team, but somewhere during the end of battle spell casting this happened.

v2.2.1


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

Variable obj_battlecontroller.attack(100181, -2147483648) not set before reading it.
at gml_Script_crit_attack
############################################################################################

stack frame is
gml_Script_crit_attack (line 0)
gml_Script_bc_CreatureAttack
gml_Script_bc_ExecuteEvents
gml_Object_obj_battlecontroller_Step_0

Got it again about 30 battles later. This didn’t happen prior to the latest version. Save attached, probably spell related.


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

Variable obj_battlecontroller.attack(100181, -2147483648) not set before reading it.
at gml_Script_crit_attack
############################################################################################

stack frame is
gml_Script_crit_attack (line 0)
gml_Script_bc_CreatureAttack
gml_Script_bc_ExecuteEvents
gml_Object_obj_battlecontroller_Step_0


slot4.sav (1 MB)