Here's a start (just know that I am not a developer). I'm sure there is a less convoluted way to fix this. For whatever reason, yanfly's plugin commandeers the battleenemy window for BOTH actors and enemies, which is where the compatibilities clash. None of the battleactor functions get used from mog.
First of all, you need to add the MOG arrow clearing code to ok/cancel for skills and items since it's not doing it automatically. I just added it to the 4 Scene_battle functions at the bottom of targetcore:
Code:
Yanfly.Target.Scene_Battle_onEnemyOk = Scene_Battle.prototype.onEnemyOk;
Scene_Battle.prototype.onEnemyOk = function() {
BattleManager.clearCustomTargetSelectGroup();
Yanfly.Target.Scene_Battle_onEnemyOk.call(this);
$gameTemp._arrowAllTargets[1] = false;
for (var i = 0; i < $gameParty.members().length; i++) {$gameParty.members()[i]._arrowVisible = false; };
};
Yanfly.Target.Scene_Battle_onEnemyCancel = Scene_Battle.prototype.onEnemyCancel;
Scene_Battle.prototype.onEnemyCancel = function() {
BattleManager.clearCustomTargetSelectGroup();
Yanfly.Target.Scene_Battle_onEnemyCancel.call(this);
$gameTemp._arrowAllTargets[1] = false;
for (var i = 0; i < $gameParty.members().length; i++) {$gameParty.members()[i]._arrowVisible = false; };
};
Yanfly.Target.Scene_Battle_onActorOk = Scene_Battle.prototype.onActorOk;
Scene_Battle.prototype.onActorOk = function() {
BattleManager.clearCustomTargetSelectGroup();
Yanfly.Target.Scene_Battle_onActorOk.call(this);
$gameTemp._arrowAllTargets[1] = false;
for (var i = 0; i < $gameParty.members().length; i++) {$gameParty.members()[i]._arrowVisible = false; };
};
Yanfly.Target.Scene_Battle_onActorCancel = Scene_Battle.prototype.onActorCancel;
Scene_Battle.prototype.onActorCancel = function() {
BattleManager.clearCustomTargetSelectGroup();
Yanfly.Target.Scene_Battle_onActorCancel.call(this);
$gameTemp._arrowAllTargets[1] = false;
for (var i = 0; i < $gameParty.members().length; i++) {$gameParty.members()[i]._arrowVisible = false; };
};
Secondly, you need to edit the processcursormove in MOG's plugin because it's not clearing after every move. Also, again, it applies to both actors and enemies now.
Code:
var _alias_mog_bcursor_wbeny_processCursorMove = Window_BattleEnemy.prototype.processCursorMove;
Window_BattleEnemy.prototype.processCursorMove = function() {
if (!this._window_mode && this.isCursorMovable()) {
var lastIndex = this.index();
if (Input.isRepeated('down')) {this.addIndex(1)};
if (Input.isRepeated('up')) {this.addIndex(-1)};
if (Input.isRepeated('right')) {this.addIndex(1)};
if (Input.isRepeated('left')) {this.addIndex(-1)};
var newindex = this.index();
if (this.index() !== lastIndex) {
SoundManager.playCursor();
//---------------------------------- changed
for (var i = 0; i < ($gameParty.members().length); i++) {$gameParty.members()[i]._arrowVisible = false; }
if (this.enemy().isActor()) {
this._enemies[newindex]._arrowVisible = true;
}
//------------------------------------
};
return;
};
_alias_mog_bcursor_wbeny_processCursorMove.call(this);
};
Hopefully this helps someone get started on a fix. The only issue left is that if you use an item that targets all allies, it doesn't clear the blinking white flash on actors. I can't find whatever makes that effect.