Problem with Mr. Bubble Blue Magic script when using a self destruct dmg formula

Link to Mr. Bubble's blue magic script:

I quite literally have no idea what causes the crash, only that when it does, it points to line 396 in the script editor.

Screen shot:

2ec7a34d6f.png


This is a screen shot of the skill page. I don't know what further information I can provide on this matter but any help would be appreciated.
Hi,

Once a battler becomes unmovable (e.g. they die), their planned actions are cleared. Since the active battler died during their own action in this case, trying to access their current action afterwards fails.

You could try to swap line 396 with the line above it (394) to avoid this problem.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-mr-bubble-blue-magic-script-when-using-a-self-destruct-dmg-formula.49944/