Hello, hope anyone can help me with this one
I'm currently using PTB on my game and it works well so far, everything works as it should except magic reflection.
When you add the scripts to your project and start a battle, you get this error as soon as you or an enemy perfoms an attack:
Commenting out those lines of code on both patches and fixes the crash, but then the party won't lose all their turns when magic is reflected, as they should due to the PTB config. Same happens with Yanfly's element reflect, works fine with absorb though. I've tested it on an empty project with no other scripts and the same thing happens, either the game crashes or the reflect won't work properly if you delete those lines of code.
I have the scripts in the correct order (same happens without element reflect or if its above the ptb scripts)
I'm currently using PTB on my game and it works well so far, everything works as it should except magic reflection.
When you add the scripts to your project and start a battle, you get this error as soon as you or an enemy perfoms an attack: