*
* @param player the player
*/
public void sendSkillList(L2PcInstance player)
{
SkillList sl = new SkillList();
if(player != null)
{
for(L2Skill s : player.getAllSkills())
{
if(s == null)
{
continue;
}
if(s.getId() > 9000)
{
continue; // Fake skills to change base stats
}
if(s.bestowed())
{
continue;
}
if(s.isChance())
{
sl.addSkill(s.getId(), s.getLevel(), s.isChance());
}
else
{
sl.addSkill(s.getId(), s.getLevel(), s.isPassive());
}
}
}
sendPacket(sl);
sl = null;