Elemental buff skill help

Hello, I'm trying to make a skill that gives fire resistance to the whole team, but when I use it... everybody DIES!
What am I doing wrong? In my mind it should work just fine.
Is the fire resistant state state 1? If so that is why, as state 1 is the knockout state, and is used by the engine to determine when people are dead.
You're my savior, I was literally going crazy, SOLVED!
Thank you a million!
Glad it worked. Just note that the engine uses 2 states for special things, and you should never use those for anything else:

State 1 is the knock out state. Use it to decide how you wish to handle KO (like do they still get EXP? Reduced EXP? Is it removed after battle? Etc).

State 2 is the guard state, and is added whenever a character guards.

All other states are free to use unless a plug-in uses them for something.
That's actually a helpful info, I need to keep that in mind.
Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/elemental-buff-skill-help.110815/