Add MP damage effect (SOLVED)

Hello! I want to know if its possible to add an effect in battle when you receive MP damage.
For example I found that line in Game_Actor wich I think it's the effects that occurs when you receive HP damage:
Code:
  def perform_damage_effect
    $game_troop.screen.start_shake(5, 5, 10)
    @sprite_effect_type = :blink
    Sound.play_actor_damage
  end
But I don't know how to apply a similar effect when you recive MP damage.

Thanks in advance!
I can try to work on it.
Do you want it to just be the same type of effect as with the HP damage?

Edit: already done lol, just waiting to see if you want different effects.
Oh! Thank you @tv.ghost ! The same effect its ok! Maybe if I can only change the sound effect to be diferent from the HP damage. But it’s not strictly necessary, the same effect its awesome too.
Thanks in advance!
Oh! Thank you @tv.ghost ! The same effect its ok! Maybe if I can only change the sound effect to be diferent from the HP damage. But it’s not strictly necessary, the same effect its awesome too.
Thanks in advance!
https://forums.rpgmakerweb.com/index.php?threads/mp-damage-effect.107720/
Let me know if you need additional features.
Thank you @tv.ghost this works perfectly! It’s amazing! Thank you very much! 🙂

This post can be closed due to being solved

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Moderator note: This thread is being opened so that code can be updated.
@tv.ghost When you have finished, please report this post and ask for the thread to be closed again.

EDIT
Moderator note: Closing once more.

Original thread: https://forums.rpgmakerweb.com/threads/add-mp-damage-effect-solved.107614/