Help with my skills

Hello! First of all, this is my first post here, so I apologize if I do something wrong with this post.

I am making a card game where each card is a skill and both the characters in your group and your enemies use the same cards. But I want each card to only be used once, so when the player uses a skill, the player forgets said skill until the combat ends, which would be the equivalent of not being able to use the card again until that the fight ends. The problem is that I do this through common events, which means that if the enemy uses a skill, the player will forget said skill.

So what I would like is a way to identify in the common event if it is the player or the enemy who is using the skill so that, if it is the enemy who is using the skill, the player does not forget it. Can someone help me please?

P.S: The solution of creating two identical skills, one for the player and one for the enemy and that the enemy's skill does not make the player forget the skill would not work. As I said, each skill is a card in my card game. And there are going to be 1000 cards in total, so I need 1000 skills and 1000 common events, so I don't have room to create each skill twice.

All the best.
You don't show what you've set up, but script call list gives the:

battler.isEnemy()
battler.isActor()

Does it work if you put BattleManager._subject in place of the 'battler' there?
You don't show what you've set up, but script call list gives the:

battler.isEnemy()
battler.isActor()

Does it work if you put BattleManager._subject in place of the 'battler' there?
Oh my god, it worked perfectly! Thanks to your script call, I can now identify when it is the player or the enemy that is casting the skill and ensure that, if it is the enemy that casts it, the player does not forget the skill. Thank you very much for your help, you are amazing!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-my-skills.165563/