Simple Stack States

Hello.

If I understand it corectly, I can simply change default non-stackable states to stackable with override only one function:


Code:
Game_Battler.prototype.addState = function(stateId) {
    if (this.isStateAddable(stateId)) {
//        if (!this.isStateAffected(stateId)) {
            this.addNewState(stateId);
            this.refresh();
//        }
        this.resetStateCounts(stateId);
        this._result.pushAddedState(stateId);
    }
};


Am I right?
I understand it as the most simple way to make states stackable - also I understand Game_Battler.prototype.removeState = function(stateId) will erase only one instance of state per one call which I am fine with for now.

Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/simple-stack-states.94350/