Enemy AI battle crash

  1. Crash

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

DoDiv :1: Execution Engine - Cannot operate on string type
at gml_Script_bc_CritCanCastSpell
############################################################################################

stack frame is
gml_Script_bc_CritCanCastSpell (line 0)
gml_Script_bc_ArtificialIntelligence
gml_Script_bc_Turn
gml_Object_obj_battlecontroller_Step_0

  1. Never seen this one before. I was going through mercy and judgment in the nether realm and after a couple battles the game crashed after my health was set to 1 for all creatures. I think my creature was about to cast a spell but I am not sure.
  2. Windows 10
  3. 1.1.0
  4. What could have been divided wrong?