Giving actor 10 MP when they slay an enemy

I would like to have it so that an actor that slays any enemy gains 10 MP, but only to the actor that slayed it.

At worst, I'd imagine this might need a plugin snippet. But I'd imagine I could use variables to track who attacked last, I just can't wrap my head around it at the moment.
I imagine using the conditional battle stuff would work fine to add the 10 MP. You could store the ActorID and then call a Common Event to add the MP, I think.
You could store the ActorID and then call a Common Event to add the MP, I think.
Unfortunately, This is an oversimplified conclusion. Since I don't believe you can use variables to tell who is attacking or who is using what skill.

Anyways, I found the solution using Yanfly's Skill Rewards plugin. Have the line <Defeat Reward: +10 mp> for every offensive skill.

Original thread: https://forums.rpgmakerweb.com/threads/giving-actor-10-mp-when-they-slay-an-enemy.90434/