Checking skills added through states

Hello!

I am using the following scripts:
- SeM's Final Fantasy IX Equipment Skills VXA (by SeMcDun)
- CP Passive Skills script  (by NeonBlack)
- Yanfly Engine Ace - Battle Command List v1.09b

So far I was able to create two Passive Skills called HP Attack and MP Attack which have the following effects:

HP Attack: Increases damage dealt with normal attack by 1.5 and consumes 2% of the actor's maximum HP with each attack.
MP Attack: Increases damage dealt with normal attack by 1.5 and consumes 2% of the actor's maximum MP with each attack.

I can replace the Normal Attack command with either HP Attack or MP Attack, but I want to have a single battle command when both Passive Skills are equipped.

In the database it looks like this:
When equipped, HP Attack activates the State "HP Attack", which adds a skill "HP Attack" that is hidden until learned.
When equipped, MP Attack activates the State "MP Attack", which adds a skill "MP Attack" that is hidden until learned.

Now I want to create a Condition that checks if both "HP Attack" and "MP Attack" are learned, so that I can fuse them together to create a skill "HP/MP Attack" which consumes 2% of both the actor's maximum HP and MP as well as increases damage dealt with normal attacks by 2.25.
I tried to use a Conditional Branch event which checks if the actor knows both HP Attack and MP Attack, but it wouldn't do anything. The problem is that a skill learned by "Add Skill" isn't regarded as one that is learned by Level UP or through the "Learn Skill" event.

Is there any way to change this? So far I haven't found a script that could help me.
I apologize for any grammatical mistakes (not a native speaker) and for my weird description of the problem.

Thanks in advance!
Sorry but I feel almost required to mention this...

A 'passive' skill is a skill that you cannot use but affects your stats. Eg. a skill called electric mastery - that increases damage dealt when attacking with thunder element.

The skills you described are not passive at all. They are aggressive - cause you can use them to inflict damage.

to check if an actor has [x] skill you can always do something like...

Code:
@actor.skills.include?(Skill ID)
With the normal script call, you should be able to check for the presence of the skill added from features with

Code:
actor.added_skills.include?(skill_id)
You can use this in conditional branch, for example.

Original thread: https://forums.rpgmakerweb.com/threads/checking-skills-added-through-states.26131/