Increasing elemental attack damage with armor

So I want to make an armour with a passive state that increases the characters elemental attack rate. I'm not sure what to put in the state note box, but I'm guessing it takes something from Yanfly's Buff State Core. The element is poison and the state is called human hurt. I copied this from the website but it's not working for me.

Code:
<Custom Confirm Effect>
var elements = this.getItemElements(); //Get all elements from the current action
var poisonId = 11; //Change this to your Fire Element ID in your database. By default, it is 2
if (elements.contains(poisonId)){ //Check if current action contains Fire Element
var rate = 9.99; //Define the bonus damage rate (0.25 means 25%)
value += Math.ceil(value * rate);} //Increase damage dealt. "value" is the amount of damage dealt by your skill.
</Custom Confirm Effect>

<Custom Action End Effect>
target.removeState(42); //Change X to THIS state ID to remove it once your action is finished
</Custom Action End Effect>

Thanks your help really be appreciated
If you're using Element Core, just do

Code:
<Element Magnify Poison: +y%>
thanks yeah I'm using that plugin but not actively till now. Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/increasing-elemental-attack-damage-with-armor.124402/