DB/Conditions: Fix conditions for class trainer npcs, so gossip menus will show up correctly for every class

Description in related issue:
#9952 

This PR just fixes a part of that problem.