// checks if equipped item is part of set
if(armorSet.containItem(slot, item.getItemId()))
{
if(armorSet.containAll(player))
{
L2Skill skill = armorSet.getSkill();
if(skill != null)
{
player.addSkill(skill, false);
player.addSkill(COMMON_SET_SKILL, false);
update = true;
}
if(armorSet.containShield(player)) // has shield from set
{
L2Skill skills = armorSet.getShieldSkill();
if(skills != null)
{
player.addSkill(skills, false);
update = true;
}
}
if(armorSet.isEnchanted6(player)) // has all parts of set enchanted to 6 or more
{
L2Skill skille = armorSet.getEnchant6skill();
if(skille != null)
{
player.addSkill(skille, false);
update = true;
}
}
}
}
else if(armorSet.containShield(item.getItemId()))
{
if(armorSet.containAll(player))
{
L2Skill skills = armorSet.getShieldSkill();
if(skills != null)
{
player.addSkill(skills, false);
update = true;
}