Stacking buffs/debuffs

From what I understand from doing a battle in a playthrough, an ability (Roar) that increases everyone's attack for five turns keeps stacking over and over. Is there a way to cap the number of buff stacks at two or three? Right now, if you kept going and getting the TP for it, you could infinitely increase your buff from what I understand, and I want to cap it.

Is there a script to use or ideally something to do in the game itself?
By default all buffs and debuffs are maxed at +- 2, and states do not stack at all.

if that is no longer the case then you added scripts to remove that cap, and the solution is to find which of your scripts removed that cap and either remove or reconfigure that script.
Thank you! I found the script causing this. It seems the script that shows number of turns left on a buff set the limit to 8.

Original thread: https://forums.rpgmakerweb.com/threads/stacking-buffs-debuffs.149127/