Magic Reflect Question

How does magic reflection work exactly? Does the reflection return the same damage as the actual skill performed? If the enemy used Fire and the damage is 368, would that be the same damage performed when magic reflection is used?


Where can I find the code that translates where the damage is dealt?
It returns the actual skill performed, differently from attack counter whose consider the target's attack.

Original thread: https://forums.rpgmakerweb.com/threads/magic-reflect-question.65969/