When that error happens, can you mouse over the 'statusEffectID' variable in the code and tell me what it says?
I will add extra checks so it shouldn't break there anymore but I wanna figure out the root cause
I poked around and honestly I have no idea why it's happening for you x3. But try this version please, I added all the null checks, maybe that will help. Dunno if you play on windows
https://drive.google.com/file/d/11Hkj77pByBM3uVPtQcMpVDWtHj795JVh/view?usp=share...