How can I check the element of skill?

When I need to add codition whether skill's element is physical or magical in yanfly's buff & state control,


I could use this.isPhysical() or this.isMagical(). But I don't know about element.


I tried to search information about this topic but there's no method.


How can I check elementID in custom effects, like <Custom React Effect>... etc?


- I used this but don't work.

Code:
if (this.Skill().damage.elementId === 2)
I haven't tested this, but you should be able to use the following :

Code:
this.item().damage.elementId
That works perfectly. 


Thank you for your time and consideration, Exhydra.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-check-the-element-of-skill.67739/