Familiar territory. BattleManager keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
Quick Reference
Actions 1
| endAction() | MV's endAction leaves _subject SET until processTurn's no-action branch advances it via getNextSubject; MZ nu… |
Events, Commands & Input 1
| processTurn() | Handles the turn. |
Actions
endAction
static sourceBattleManager.endAction()
MV's endAction leaves _subject SET until processTurn's no-action branch advances it via getNextSubject; MZ nulls _subject as soon as the battler's actions run out.
Details
MV's endAction leaves _subject SET until processTurn's no-action
branch advances it via getNextSubject; MZ nulls _subject as soon
as the battler's actions run out. ATB systems key off that: VE's
canUpdateAtb gates new actor inputs on !this._subject && ....
Under MZ semantics the subject vanished while the killing blow's
collapse was still animating — BattleManager.isBusy() skips the
update body that runs checkBattleEnd, but VE's appended updateAtb
is NOT busy-gated — so the next ready actor's input window opened
over an all-dead troop, and the input gate then blocked the
battle-end check until the player attacked the empty field.
MV verbatim: victory beats the next input every time.
This replaces the stock body outright, so it must emit the
stock body's event itself — a runtime that muted its own feed
on MV-authored games would be a gap, not a compatibility choice.
Events, Commands & Input
processTurn
static sourceBattleManager.processTurn()
Handles the turn. (Same as the RPG Maker MZ method of this name.)