13 lines
574 B
JavaScript
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;
|
|
});
|
|
};
|