magical-girls-runa-and-nanami/js/plugins/FixCommonOnBattleEnd.js
2026-02-28 12:33:13 -06:00

55 lines
1.9 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*=============================================================================
FixCommonOnBattleEnd.js
----------------------------------------------------------------------------
(C)2020 Triacontane
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
----------------------------------------------------------------------------
Version
1.0.0 2020/04/05 初版
----------------------------------------------------------------------------
[Blog] : https://triacontane.blogspot.jp/
[Twitter]: https://twitter.com/triacontane/
[GitHub] : https://github.com/triacontane/
=============================================================================*/
/*:
* @plugindesc FixCommonOnBattleEndPlugin
* @author triacontane
*
* @help FixCommonOnBattleEnd.js
*
* When you stab your opponent in the back and the battle ends,
* you can also use the skill
* Change the specification so that the common event is executed.
*
* This plugin is released under the MIT License.
*/
/*:ja
* @plugindesc 戦闘終了時のコモンイベント実行修正プラグイン
* @author トリアコンタン
*
* @help FixCommonOnBattleEnd.js
*
* 相手にトドメを刺して戦闘終了したときもスキルで指定した
* コモンイベントが実行されるように仕様変更します。
* 
* このプラグインにはプラグインコマンドはありません。
*
* 利用規約:
* 作者に無断で改変、再配布が可能で、利用形態商用、18禁利用等
* についても制限はありません。
* このプラグインはもうあなたのものです。
*/
(function() {
'use strict';
var _BattleManager_checkBattleEnd = BattleManager.checkBattleEnd;
BattleManager.checkBattleEnd = function() {
if ($gameTemp.isCommonEventReserved()) {
return false;
}
return _BattleManager_checkBattleEnd.apply(this, arguments);
}
})();