Got the error:Invalid access to property or key 'flame' on a base object and idk how to fix it

Godot Version

4.6.1

Question

What I was trying to do:
i have a game where you type the spell name i set it where if the element is true then the translucent sprite will appear.

got the error:
Invalid access to property or key ‘flame’ on a base object of type ‘previously freed’.

first two are from the spellbox script while the other are part of the gun.

I get that the errors say the instance is gone but i didn’t queue_free() that variable.

I it will will work if write spell.frost = true and spell.fire = true. You are trying to access properties from one script for another. If you just write fire = true the script will assume that you are trying to change properties within itself.