public L2Skill addSkill(L2Skill newSkill) { if(newSkill.getCanLearn(getClassId())) { // Add a skill to the L2PcInstance _skills and its Func objects to the calculator set of the L2PcInstance L2Skill oldSkill = super.addSkill(newSkill); // Add or update a L2PcInstance skill in the character_skills table of the database storeSkill(newSkill, oldSkill, -1); return oldSkill; } return newSkill; }