Joramun wrote:When fireballing "he is my prisonner, let him suffer". Instance 1200 is a floor trigger.
This problem is kind of messy. When the fireball explodes, the
explode_square function creates a list of the instances in the tile and proceeds to iterate over it, handling the explosion for each thing. The mummy's death untriggers the trigger, which fires off an activate to a relay and causes the trigger the mummy was standing on to be destroyed. All this happens on the mummy's death, so by the time
explode_square's iterator gets to the trigger, the trigger is gone. There are a few ways to fix this, the various solutions becoming increasingly robust and "correct" and causing increasing amounts of messiness for me. For now, I'm just going to make
dsb_find_arch return an empty table on an invalid input, instead of erroring out. It'll make bad code a little harder to debug, but it won't change working code one bit.
tl;dr version: Fixed