MV Properly Setup Magical and Certain Hit Counter Abilties

Hi, using Yanfly's Countercontrol plugin, I have been able to successful attach certain abilities to enemies to use when they are physically counterattack. However, I am not getting the same results whenever an enemy is hit by a magical or certain hit attack.

For example:

Enemy counters against a magic ability (Skill A)
<Counter Condition>
Magical Hit
single target
</Counter Condition>

Enemy counters against a certain hit ability (Skill B )
<Counter Condition>
Certain Hit
single target
</Counter Condition>

I attach those commands to matching skills, but sometimes enemy counters with both regardless of type of attack.
i.e.
<Counter Skills: A, B> to enemy

How do I properly setup for the enemy to counter only when a magical or certain hit is used against it?
Those notetags all look correct. (Technically, the documentation lists it as Single Target, but I suspect the regex parsing is case-insensitive and wouldn't cause this problem)

The first thing to check is the most common cause of problems: make sure that all of your Yanfly plugins are in the correct order according to the list on the Yanfly Engine Plugins page. Not adhering to that order can cause random errors to occur.

If your plugins are in the correct order and you're still getting this, then start a new project and include only the Battle Engine and Counter Control plugins - see whether it works correctly or has the bug.

If that works correctly, then you know you have to troubleshoot your project. If the bug is present in that setup, let us know and we can verify and check out the code.
appreciate it will start dissecting the issue

Original thread: https://forums.rpgmakerweb.com/threads/properly-setup-magical-and-certain-hit-counter-abilties.151095/