class name combo unluck skill

so i was wondering if there is a way inside yanfly plugin subclass to do something like that
if
//primary_class=() and subclass=()
(( which stand on combo name )) in other word if warrior equip cleric and switch class to combo name paladin then unluck skill...
then
skill change: x to y;
forgetSkill: x to y;
//
and if there is a way
how to do it ,ty

Ps: my JavaSrcipt is not really good ...to not at all

Original thread: https://forums.rpgmakerweb.com/threads/class-name-combo-unluck-skill.91508/