[BUG & CRASH] Djinn Dreamweaver is going HAM! then brings down the house

  1. Is your issue a bug, or is it a crash?
    Bug and a Crash

  2. If it’s a crash, please copy and paste the full error message below, or post a screenshot of it. Otherwise, leave this field blank.


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

trying to index a variable which is not an array
at gml_Script_bc_CreatureCast
############################################################################################

stack frame is
gml_Script_bc_CreatureCast (line 0)
gml_Script_bc_CreatureCastRandomSpell
gml_Script_bc_OnAttack
gml_Script_bc_CreatureAttack
gml_Script_bc_Turn
gml_Object_obj_battlecontroller_Step_0

  1. Please describe in as much detail as possible how to reproduce the bug or crash.
    Djinn Dreamweaver casts a spell 100% of the time for every 10 mana, and he casts increasingly more spells each time he attacks, then the game crashes.

Djinn Dreamweave trait reads, “After this creature attacks, it has a 30% chance to cast a random spell. This trait activates for every 10 mana the creature is missing”

  • I cast spell breath for 29 mana, haste the Djinn and it attacks, then Djinn casts two random spells (twice because of Multicast)
  • The next time it attacks it casts four (4) spells (casting each one twice of course).
  • Next time I attack the game crashes.
  1. What operating system are you playing the game on? Windows, Mac OS, Android, iOS, or Playstation? If it’s Playstation, please also state your region (NA or EU).
    Windows 10

  2. What game version are you playing? You can find the version number on the title screen in the lower left corner.
    0.0.33

  3. Any other details to help us solve the problem, such as what you were doing when the bug/crash occurred, or any hints on how we can reproduce it.
    Djinn had Multicast
    Djinn was usually hasted
    Djinn had other on-hit gems as well that occasionally triggered at the end of his trait-triggered spells.