Buffs & States Core element id check

Hmm so now im using Yanfly's Buffs & States Core and im trying to check the element id of a skill during the </Custom Confirm Effect> method anyone have any ideas?

 https://www.dropbox.com/s/0fk64r7zwfx90fo/YEP_BuffsStatesCore.js?dl=0

I have already tried item.damage.elementId and this.damage,elementId neither are defined thou.
I using:


<Custom React Effect>


var item = this.item();


if(item.damage.elementId === 1) {


value = 0;


target.removeState(311);


}


</Custom React Effect>

Original thread: https://forums.rpgmakerweb.com/threads/buffs-states-core-element-id-check.54298/