(Yanfly selection control and counter control) Ally-counter problem

Yeah, so I have a problem relating to two plugins. So I have a skill that counter attacks any physical target it lands against excluding single target. However whenever anyone hits the counter attacker, ally or enemy, an endless loop occurs where the enemy/ally hits the user using retaliate, counter attacks, and repeats. Is this a Yanflybug? No? How can I fix this?


Setup for the Retaliate state http://imgur.com/a/zd6Ui


Setup for the retaliate skill http://imgur.com/a/txg3J
That might not be a Yanfly bug, as XP had the same bug (see any game in the Millenium series). Can you post links to the plug-ins you are using? That will make it easier for someone who knows Javascript (not me, I'm still using ACE) to possibly fix the bug.
That might not be a Yanfly bug, as XP had the same bug (see any game in the Millenium series). Can you post links to the plug-ins you are using? That will make it easier for someone who knows Javascript (not me, I'm still using ACE) to possibly fix the bug.

Target core


Selection Control


Battle Engine core


 Personally, I think this is more of a bug and a conflict within @Yanfly's coding. Disabling all mods but those will still cause the issue. 
I think it's actually in the default code, as Yanfly has another plug-in that lets you better control it. Try adding this plug in: http://yanfly.moe/2016/03/11/yep-82-counter-control/


Then, set the maximum queue size for counterattacks to 1. That should make it so that an attack just triggers the counterattack, then the cycle ends.
I think it's actually in the default code, as Yanfly has another plug-in that lets you better control it. Try adding this plug in: http://yanfly.moe/2016/03/11/yep-82-counter-control/


Then, set the maximum queue size for counterattacks to 1. That should make it so that an attack just triggers the counterattack, then the cycle ends.

It fixed the infinite loop problem, but the attacker still attacks after their first hit(Or miss technically) . But I guess this is good anyways because now the retaliator only attacks once during one move.
Odd...I thought 1 would cap it at 1 retaliate. Wonder what would happen if you set it to 0? Try that, that might fix that last part.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-selection-control-and-counter-control-ally-counter-problem.67584/