MV Hime's Party Switch plugin still ignores party limit

EDIT, 1/30/21: Looked into it on my own and I'm going with Yanfly's Party System, as it better fits what I want, and I'll be further tweaking my event to suit it. But perhaps this might be useful to anyone that's had a similar issue if someone comes here and provides a fix. But if such a thread already exists... oops. Sorry, I'm new here. ;;w;;


(Continued off https://forums.rpgmakerweb.com/inde...tch-with-4-reserve-members-no-plugins.132812/ for some context.)

Plugins used:

Version: 1.6.2

The bug in action. Here's a link to the demo project:

Made a backup of my project so I can test this, and as I feared, I encountered the bug I've mentioned in the thread linked above. This plugin seems to ignore the party limit and highlights an extra slot.

Spoiler
1.png2.png


And what happens when you try to select an extra actor:

Spoiler
6 (2).png
7 (2).png


And even on a fresh project:
7.png
6.png


I specified the limit at four in the plugin parameters, and made sure the script calls are correct:

Spoiler
I can only do this in Party Manager, it seems. For Party Switch, you can only change the text that appears.
3.png

Script calls and reserve party set up. First screenshot is from a different event that runs first.
4.png
5.png


I saw this coming, to be honest. Although, if I misunderstood anything in the help text... let me know.
sooo this issue is solved by going into hime party switching scene's JS file and replacing the line

return this._data ? this._data.size() + 1 : 0;

with

if (this._data ? this._data.size() >= this._data.maxPartyMembers() : false) {
return this._data ? this._data.size(): 0;
}else{
return this._data ? this._data.size() + 1 : 0;
}

there's 2 instances of that line, gotta replace both.

the plugin just doesn't check for party size limit, this is adding that check.
just thought it was worth posting, you never know.

(can't be bothered to test with the built in reserve party function, if it breaks you can just use another party with a 999 size limit instead)

Original thread: https://forums.rpgmakerweb.com/threads/himes-party-switch-plugin-still-ignores-party-limit.132824/