MV [SOLVED] Yanfly Counter Control + Element Core (Multiple Elements)

So I'm currently trying to create a counter skill that will only trigger upon contact. So I created a separate element called Contact (Element 24) and used Yanfly's Element Core to add it as an additional element to every attack that makes contact:

<Multiple Elements: 24>

I then used Yanfly's Counter Control Plugin to set the counter skills so they could only counter skills with the Contact element:

<Counter Condition>
Element: 24
</Counter Condition>

The problem is that the Counter skill isn't happening at all now.

However, when the Contact element is set as a skill's primary element (in the base MV editor) the counter skill works as intended. So I believe that Yanfly's Counter Control doesn't work with their Element Core. Is this true or am I missing something? If it is true, is there a workaround?

I also tested this in an empty project with only these two (and other required) plugins. I got the same results.
This is known.


I'll take a poke, though, I don't think it should be a hard fix. I might be wrong.

Edit: Try this. Open the Counter Control plugin with a text editor. Go to line 1286 and change it to read:
Code:
      return this._subject.attackElements().contains(elementId) || this._action.getItemElements().contains(elementId);
This is known.


I'll take a poke, though, I don't think it should be a hard fix. I might be wrong.

Edit: Try this. Open the Counter Control plugin with a text editor. Go to line 1286 and change it to read:
Code:
      return this._subject.attackElements().contains(elementId) || this._action.getItemElements().contains(elementId);
Thank you so much! This worked perfectly!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-yanfly-counter-control-element-core-multiple-elements.146461/