MV An Add-on to YEP_StatAllocation plugin

Not sure which forum I was supposed to place this post in... But it's a request so I feel this the one that most closely works.

So, I ran into a bug in Yanfly's Stat Allocation plugin. The plugin works great for my game, and I have managed to adjust it to work with my mechanics... The bug I found - and this was not something I had run into before, mostly because I never tried it - is that even when a character is dead, they can still have their stats allocated and thus be brought back to life. Yep, when you allocate a dead guy, the HP raises by the allocated amount and thus resurrection is achieved.

Just call them Lazarus.

I'm wondering if there is a person out there that can patch the plugin to prevent this from happening, or maybe point me in the direction of a patch already made?

Addition: Apparently this little bug cures status effects as well... Thats extremely annoying!
Did you try just add conditional to not increase hp if the actor hp is 0?

Game_Actor.prototype.gainParamAllocateTimes = function(paramId, times, classId) {
classId = classId || this._classId;
if (this._paramAllocationTimes === undefined) this.initStatAllocation();
var value = this.getParamAllocateTimes(paramId) + times;
var maxHp = this.mhp;
var maxMp = this.mmp;
this.setParamAllocateTimes(paramId, value);
var maxHpDifference = this.mhp - maxHp;
var maxMpDifference = this.mmp - maxMp;
if (!this._hp === 0)
this._hp += maxHpDifference;
this._mp += maxMpDifference;
};
Did you try just add conditional to not increase hp if the actor hp is 0?

Game_Actor.prototype.gainParamAllocateTimes = function(paramId, times, classId) {
classId = classId || this._classId;
if (this._paramAllocationTimes === undefined) this.initStatAllocation();
var value = this.getParamAllocateTimes(paramId) + times;
var maxHp = this.mhp;
var maxMp = this.mmp;
this.setParamAllocateTimes(paramId, value);
var maxHpDifference = this.mhp - maxHp;
var maxMpDifference = this.mmp - maxMp;
if (!this._hp === 0)
this._hp += maxHpDifference;
this._mp += maxMpDifference;
};
This works great, thank you. It's not perfect, but it fixes the bug and that's all I asked for. Thank you

Just out of curiosity, how would I make so that the Stat Allocation scene doesn't even open for the dead character? It's not important since the fix works, but more a cosmetic thing for the game.
Cool.

For that additional functionality I guess you'd need to modify nextActor and previousActor methods for that scene (page up, page down stuff inside the scene) and also modify the Scene_Menu.prototype.onPersonalOk (edit: which the plugin already modified and uses to push the scene) to check for the actor and their hp/status. But I've no motivation to do that at the moment. Maybe someone else will help with the additional stuff.
Cool.

For that additional functionality I guess you'd need to modify nextActor and previousActor methods for that scene (page up, page down stuff inside the scene) and also modify the Scene_Menu.prototype.onPersonalOk (edit: which the plugin already modified and uses to push the scene) to check for the actor and their hp/status. But I've no motivation to do that at the moment. Maybe someone else will help with the additional stuff.
Cool... I'll what I can come up with. Thank you again

Original thread: https://forums.rpgmakerweb.com/threads/an-add-on-to-yep_statallocation-plugin.180420/