MZ Help with understanding a solution :P

So i've had an issue with this FOMAR's Individual battle system. Looked at his comments and another user had the same problem and fixed it, but his explanation left a bit to desire and the user seems to not have been active for a while.
Spoiler: Solution and link
Skjermbilde 2025-05-09 210035.png

I tried to solve it myself but there's not much to go on (for me). I prolly could do it with a ton of trial and error but I figured it would be more wise to ask for aid 😛

Here is the code he changed (I believe, its only references to what he mentioned in the script)

Code:
  BattleManager.updateTpb = function() {
    $gameParty.members().concat($gameTroop.members()).forEach((member) => {
      if (!member.isAlive()) {
        this._battlers.remove(member);
      } else {
        if (!this._battlers.includes(member)) {
          this._battlers.push(member);
        }
      }
    });
    if (this._battlers[0]) {
      this._battlers[0].onTurnEnd();
      if (this._battlers[0].isActor()) {
        if (this._battlers[0].canMove()) {
          if (this._battlers[0].canInput()) {
            this._inputting = true;
            this._currentActor = this._battlers[0];
            this._currentActor.makeActions();
            this.startActorInput();
          } else {
            this._subject = this._battlers[0];
            this._subject.makeActions();
          }
        }
      } else {
        this._subject = this._battlers[0];
        this._subject.makeActions();
        $gameTroop.increaseTurn();
      }
      this._battlers.remove(this._battlers[0]);
    }
  };

  BattleManager.updateTpbInput = function() {
    // done elsewhere now
  };

Anyone understand what I need to do to fix it?
Anyone understand what I need to do to fix it?
right after
Code:
this._battlers[0].onTurnEnd();
try adding
Code:
this.displayBattlerStatus(this._battlers[0])
and you should be good to go
right after
Code:
this._battlers[0].onTurnEnd();
try adding
Code:
this.displayBattlerStatus(this._battlers[0])
and you should be good to go

Worked! Tnx! I love this battle system, ive already sacrificed like 10 other plugins in order to use it xD

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-understanding-a-solution-p.177558/