unholy-maiden/js/plugins/Unit03_is_hit.js
2025-12-18 09:44:14 -06:00

20 lines
No EOL
524 B
JavaScript

/*:
* @target MZ
* @plugindesc レオタードダメージのためのヒット確認
* @help
* レオタードダメージのためのヒット確認
*/
(() => {
'use strict';
const IS_HIT_SWITCH = 500;
function Game_Action_IsHitMixIn(gameAction) {
const _apply = gameAction.apply;
gameAction.apply = function (target) {
_apply.call(this, target);
$gameSwitches.setValue(IS_HIT_SWITCH, target.result().isHit());
}
}
Game_Action_IsHitMixIn(Game_Action.prototype);
})();