Strange Game Breaking Bug when selecting "Magical Attack" type.

Hello, I wonder if anyone can help me with this.

I've been organizing all my skills with proper characterstics and encountered a problem when selecting

Hit Type: Magical Attack.
This problem seems to appear only when there is multiple enemies. It doesnt happen when there is only one.

Any ideas?

Thank you in advance

RPGBug.png
The "is not a function" error generally indicates a JavaScript typo.

Is there any code you typed into any notetags on the skills? Or into any of your plugin parameters?

If you've done zero things like that, you could try redownloading and copying over your Battle Engine Core, just to make sure it's not a corrupted file.

If none of that helps, I suppose you could share a screenshot of the skill it's happening with. I don't see how the hit type could have any effect on this, it appears to be entirely related to the multiple enemies.

If you're using multiple Yanfly plugins, you should check they're in your plugin manager in the exact order they're listed on the Yanfly Engine Plugins Web site.
Nothing seems to be working. I am using MOG battle hud though. I wonder if there is any sort of incompatibility
I asume I could work only with Physical type and do workarounds on the battles.
Here is the skill. It fails if I switch to Magical Attack.

RPGBug2.png
Aside from the unnecessary parentheses in the damage formula, I don't see anything that looks wrong with that.

And you checked that you have no notetags with code? And replaced the plugin file? And the Yanfly order?

That's really where this error would go back to, a JavaScript typo of some kind.

I am using MOG battle hud though. I wonder if there is any sort of incompatibility
Seems trivial to test - do you get the error with the Battle HUD turned off?
I checked all. But I dont think is any of that.
I just tried turning Off the MOG battle plugin and the bug dissapeared >_>

I guess those 2 plugins aren't compatible or MOG made some sort of mistake I'm unaware of.
It's possible there is an actual bug where the MOG plugins is putting not Game_BattlerBases into that array, so there literally isn't a name method.

But I'd be more inclined, again, to think your copy of it might be corrupted or something...a lot of people have used that plugin without this problem.

I made a game jam project that used the MOG BattleHud and a handful of Yanfly plugins and it had no problem.

Have you tried dragging the plugins in your plugin manager to change which one is above the other?

In my project, it functioned with the BattleHud at the top, under just Yanfly's Core Engine.
It's possible there is an actual bug where the MOG plugins is putting not Game_BattlerBases into that array, so there literally isn't a name method.

But I'd be more inclined, again, to think your copy of it might be corrupted or something...a lot of people have used that plugin without this problem.

I made a game jam project that used the MOG BattleHud and a handful of Yanfly plugins and it had no problem.

Have you tried dragging the plugins in your plugin manager to change which one is above the other?

In my project, it functioned with the BattleHud at the top, under just Yanfly's Core Engine.

I dont know where the download the plugin again. The plugin pack I got was bought from their Patreon some time ago.
I tried dragging the plugin around but it always gets the glitch.

If I put the MOG plugin above the Battle Engine core, a different bug appears (enemy selection names become invisible)
And If put the MOG plugin below Battle Engine core, I get the bug.

The only instance where the Magic Attack bug dissapears, is ONLY if I turn off MOG plugin, then nothing is bugged. But I really need that MOG plugin to be On x.x

Original thread: https://forums.rpgmakerweb.com/threads/strange-game-breaking-bug-when-selecting-magical-attack-type.165203/