Can I have an ability that casts a state on the entirety of both teams
that let's say if the afflicted is Water Type (Has Water State)
every turn the initial state lasts, they regen 5% HP
If the afflicted is not Water Type (No Water State)
it does nothing?
you can probably dispense with the whole plugin and configurations by sorting out the synergy of vulnerability/resistance within the states themselves.
have your battlers be 100% resistant to the HP regen state or element, and 100% vulnerable to the water state.
then, have the water state make them 0% resistant to the HP regen state.
when HPR state drops on a 100% resistant battler, it'll bounce off, unless they're previously affected by the water state.
if you want to drop the water state, have another state *make* the user 100% resistant to both the water state and itself.
when that state drops on a battler, it'll pop the water state out, and then itself, making the battler again 100% resistant to HPR.
no conditionals, no plugins, no nothing... the game engine proper is already doing the validation FOR you! no need to put another validation on top!