Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
--- YEP_BattleEngineCore.js 2016-01-10 03:43:27.000000000 +0900
+++ YEP_BattleEngineCore_fix.js 2016-01-10 03:46:21.000000000 +0900
@@ -4185,7 +4185,7 @@
for (var i = 0; i < this._enemies.length; ++i) {
var enemy = this._enemies[i];
if (!enemy) continue;
- if (this.isClickedEnemy(enemy)) {
+ if (this.isMouseOverEnemy(enemy)) {
if (this._selectDead && !enemy.isDead()) continue;
var index = this._enemies.indexOf(enemy)
if (this._inputLock && index !== this.index()) continue;
@@ -4195,7 +4195,7 @@
return -1;
};
-Window_BattleEnemy.prototype.isClickedEnemy = function(enemy) {
+Window_BattleEnemy.prototype.isMouseOverEnemy = function(enemy) {
if (!enemy) return false;
if (!enemy.isSpriteVisible()) return false;
var x = TouchInput._mouseOverX;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment