MZ Type Error "isDead"

Hi I am making an RPG using RPG maker MZ

Im using FOSSIL to load the plugins from RPG maker MV.
Im using YEP Battle Engine core.js to customize my game.

But when I use a revive spell or item which scope is set to status = "dead"
When I got to use an Item/spell it instantly throws the following error message -

"TypeError
Cannot read property 'isDead' of undefined"

The Dev consol reads -
TypeError: Cannot read property 'isDead' of undefined
at Window_BattleActor.isOkEnabled (YEP_BattleEngineCore.js:4861)
at Window_BattleActor.Window_Selectable.processHandling (rmmz_windows.js:1150)
at Window_BattleActor.Window_Selectable.update (rmmz_windows.js:1116)
at Window_BattleActor.Window_Selectable.update (MOG_MenuCursor.js:670)
at Window_BattleActor.Window_BattleStatus.update (YEP_BattleEngineCore.js:5323)
at WindowLayer.update (rmmz_core.js:4202)
at Scene_Battle.Scene_Base.updateChildren (rmmz_scenes.js:129)
at Scene_Battle.Scene_Base.updateChildren (MOG_MenuCursor.js:658)
at Scene_Battle.Scene_Base.update (rmmz_scenes.js:52)
at Scene_Battle.Scene_Base.update (MOG_MenuCursor.js:646)

just pulling up one of those sources it looks like this -

Window_BattleActor.prototype.isOkEnabled = function() {
if (this._selectDead) return this.actor().isDead();
return Window_Selectable.prototype.isOkEnabled.call(this);

------------------------------------------------------------------
I'm not an expret at coding so im unsure what needs to be done to fix this, but any suggestions as to why this error is happening and how It can be fixed. I'm guessing there is compatibility issues with FOSSIL and this plugin with the definition of "isDead" but what sort of work around can I do, without pulling FOSSIL or YEP battle engine as they are big parts of the game.

thanks
The actor method of Window_BattleActor is designed differently in MZ:
  • In MV, it is called with no arguments, and returns the currently-selected actor.
  • In MZ, it expects to be given an index, and returns the actor at that index.
You could try a small patch like this (untested):
JavaScript:
/*:
 * @target MZ
 * @plugindesc FOSSIL extension: Window_BattleStatus#actor.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/171623/
 * @orderAfter YEP_BattleEngineCore
 * @help Free to use and/or modify for any project, no credit required.
 */
;void (alias => {
  Window_BattleStatus.prototype.actor = function(index, ...args) {
    if (index === undefined)
      return alias.call(this, this.index(), ...args);
    return alias.apply(this, arguments);
  };
})(Window_BattleStatus.prototype.actor);

Original thread: https://forums.rpgmakerweb.com/threads/type-error-isdead.171623/