From 73b07c34d061bc6dc8b9e14435968709fd10a6fc Mon Sep 17 00:00:00 2001 From: Salted <44394537+xian18@users.noreply.github.com> Date: Wed, 5 Oct 2022 16:48:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E9=80=92=E5=BD=92=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/plugins/SF_StateSuperpose.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/plugins/SF_StateSuperpose.js b/js/plugins/SF_StateSuperpose.js index daddbb3..6fc47df 100644 --- a/js/plugins/SF_StateSuperpose.js +++ b/js/plugins/SF_StateSuperpose.js @@ -84,14 +84,14 @@ DataManager.SF_StateSuperpose_isDatabaseLoaded = function (group) { //============================================================================= SF_Plugins.SF_StateSuperpose.GameBattler_addState = Game_Battler.prototype.addState; Game_Battler.prototype.addState = function (stateId) { - SF_Plugins.SF_StateOverride.GameBattler_addState.call(this, stateId); + SF_Plugins.SF_StateSuperpose.GameBattler_addState.call(this, stateId); var stateSuperpose_ID = $dataStates[stateId].SF_StateSuperpose_ID; if (this.result().isStateAdded(stateId) && stateSuperpose_ID !== undefined) { var turns = this._stateTurns[stateId]; this.states().forEach(function (state) { if (state.SF_StateSuperpose_ID === stateSuperpose_ID) { - this.addState(state.id); + SF_Plugins.SF_StateSuperpose.GameBattler_addState.call(this, stateId); this._stateTurns[state.id] = turns; } }, this);