MV [PSA] Yanfly's Counter Control and Element Core quirk

I am posting this here in hope of saving someone time.
So, yanfly's Counter Control allow us to set Counter Conditions on the skill that being used as the counter move (aka on Attack not on the skill that grant you counter status effect).

One of the possible condition is element. So you can make a melee-only counter by making melee its own element then using Element Core to make the skill have more element then just melee, right?

The answer is YESish
Turn out, the Element condition of Yanfly's Counter Control only care about this:

1684783792339.png


and it doesn't care about this:
1684783873329.png


This problem have stole like an hour of my life that I'll never get back.
I'm sure someone could bypass this problem using Eval and/or other Lunatic coding trick but that someone is not me.

Anyway, if your yanfly's element specific counter doesn't work or only occasionally work....this might be why.
Hope this help.
That's true. It's not a dumb assumption, but neither plugin specifically references the other in the documentation, either.

If you want to do that, you can use this eval condition:
Code:
eval: action.getItemElements().includes(X)
where X is the ID of the element in your database (no leading zeros).

Original thread: https://forums.rpgmakerweb.com/threads/psa-yanflys-counter-control-and-element-core-quirk.157725/