Plugin in question: Spoiler This plugin allows states to stack, and when placed BELOW Yanfly's buffs states core plugin, it functions perfectly fine, except that it overwrites the yanfly display method for showing the duration of a state, to instead show number of stacks. So I figured switching the order would simply do the same, but instead show state turns, and not stacks. Well, nope, it doesn't work at all, instead crashing with a "TypeError cannot read property 'contains' of undefined".
Plugin in question:
https://github.com/Trivel/RMMV/blob/master/MrTS_StatesEX.js
This plugin allows states to stack, and when placed BELOW Yanfly's buffs states core plugin, it functions perfectly fine, except that it overwrites the yanfly display method for showing the duration of a state, to instead show number of stacks.
So I figured switching the order would simply do the same, but instead show state turns, and not stacks. Well, nope, it doesn't work at all, instead crashing with a "TypeError cannot read property 'contains' of undefined".
The attached image shows the only 2 parts of the code where the word "contains" appears, hopefully it will help narrow down/simplify the creation of a workaround to get them both working nicely together.