27 lines
No EOL
970 B
JavaScript
27 lines
No EOL
970 B
JavaScript
/*:
|
|
* @target MZ
|
|
* @plugindesc 【最下段に置く】敵クリック無反応をリセットするだけのパッチ
|
|
* @orderAfter NRP_BattleTargetCursor
|
|
* @orderAfter NUUN_BattleStyleEX <-- ここが肝心
|
|
*/
|
|
|
|
(() => {
|
|
"use strict";
|
|
|
|
/** 「処理が終わったら必ずタッチ状態をクリアする」だけ */
|
|
function wrapProcessTouch(baseFunc) {
|
|
return function() {
|
|
baseFunc.apply(this, arguments); // 元の処理
|
|
$gameTemp.clearTouchState?.(); // ← ロック解除
|
|
};
|
|
}
|
|
|
|
if (Window_BattleEnemy?.prototype.processTouch) {
|
|
Window_BattleEnemy.prototype.processTouch =
|
|
wrapProcessTouch(Window_BattleEnemy.prototype.processTouch);
|
|
}
|
|
if (Window_BattleActor?.prototype.processTouch) {
|
|
Window_BattleActor.prototype.processTouch =
|
|
wrapProcessTouch(Window_BattleActor.prototype.processTouch);
|
|
}
|
|
})(); |