Skip to content

Instantly share code, notes, and snippets.

@rutan
Last active January 9, 2016 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rutan/1176d103abb7ef0971d7 to your computer and use it in GitHub Desktop.
Save rutan/1176d103abb7ef0971d7 to your computer and use it in GitHub Desktop.
--- 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