white-thirst/www/js/plugins/YED_Eventspassable.js
2025-01-07 13:09:58 -06:00

13 lines
574 B
JavaScript

//=============================================================================
// YED_Eventspassable.js
//=============================================================================
/*:ja
* @plugindesc イベントもしくはフォロワーが他のイベントにヒットした際に、途中で停止してしまうことを防ぎます。
*/
Game_Event.prototype.isCollidedWithEvents = function (x, y) {
var events = $gameMap.eventsXyNt(x, y);
return events.some(function (event) {
return event._priorityType === this._priorityType;
});
};