* @param player Player
* @param skill Skill
*/
public static void checkSkill(Player player, Skill skill)
{
SkillLearn learn = SkillAcquireHolder.getInstance().getSkillLearn(player, skill.getId(), levelWithoutEnchant(skill), AcquireType.NORMAL);
if (learn == null)
{
return;
}
if (player.isAwaking())
{
return;
}
if (learn.getMinLevel() > (player.getLevel() + 10))
{
player.removeSkill(skill, true);
for (int i = skill.getBaseLevel(); i != 0; i--)
{
SkillLearn learn2 = SkillAcquireHolder.getInstance().getSkillLearn(player, skill.getId(), i, AcquireType.NORMAL);
if (learn2 == null)
{
continue;
}
if (learn2.getMinLevel() > (player.getLevel() + 10))
{
continue;
}
Skill newSkill = SkillTable.getInstance().getInfo(skill.getId(), i);
if (newSkill != null)