Last active
January 9, 2016 18:49
-
-
Save rutan/1176d103abb7ef0971d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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