Are you saying that you are getting the same error that currentClass() is not a function? Is srpg_core under yanfly equip?
Try starting a database test battle (Troop tab) then open the console and type in:
$gameTroop._enemies[0].currentClass()
It should spit out the enemy's class
Alternatively, try:
Game_Enemy.prototype.currentClass = function () {
return $dataClasses[this.enemy().meta.srpgClass];
};
Make sure all enemies have a valid srpgClass if you go down this path
I originally had srpg_core above Yanfly's Equip Core. I switched it around and now I get the same error message, but the lines for the error are different.
My enemy has "<srpgClass:Enemy> in its note section.
When I start a test battle from the troop tab and open the console and type in that command, I get it to return "undefined" when using the code from the above quote.
If I use this code:
//New Yanfly function (to allow draw class to work with enemies) #Boomy
Game_Enemy.prototype.currentClass = function () {
if (Imported.YEP_X_EnemyBaseParam) {
return $dataClasses[this.enemy().classId];
} else {
return this.enemy().meta.srpgClass;
}
};
I get the console to return "Enemy".
Also, I get the error right when I try to attack the enemy. So it seems like it is the UI that comes up to confirm the action.