Crash during battle.

Have had a crash simlar to this a few times today now.


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

Push :: Execution Error - Variable Index [0,2] out of range [1,2] - 104328.properties_type(100098,2)
at gml_Script_bc_SpellDamage
############################################################################################

stack frame is
gml_Script_bc_SpellDamage (line -1)
gml_Script_bc_CreatureCast
gml_Script_bc_CreatureCastSpellGem
gml_Script_bc_OnDefend
gml_Script_bc_CreatureDefend
gml_Script_bc_CreatureEndOfTurn
gml_Object_obj_battlecontroller_Step_0

Seems like you’re using a trait that causes spells to be cast when you defend. Could you please tell me what trait that is, and what spells that creature has equipped?

I am currently using a Pit Guard that has Pandemonium Mania. Whenever he defends he casts Chaos Rift, I am unsure what traits where given during that battle. I have noticed that as battle are lasting longer now that I am post story, I frequently get a pop up saying my creatures have too many traits during combat. Sorry I couldn’t be of more help.