Help on State and Action Sequence

Hi senpais,

I need help on action sequence.
I wanted my action to add fire element to his attack when he get a state. ID=45 is the state.
But The user have not receive the state and is able to get the fire element attack.
Is my code wrong?

I am using yanfly. element core and action sequence.

Code:
<Setup Action>
if(user.isStateAffected(45))
add element: fire
force element: fire
end
</Setup Action>
I never used this elemental core plugin, but i do have two theories about your code...

1. You might wanna try to use the element ID instead of it's raw name.
2. Change the action sequence tag from SETUP to TARGET.

Original thread: https://forums.rpgmakerweb.com/threads/help-on-state-and-action-sequence.82423/