Sync with L2JServer Jan 2nd 2015.

This commit is contained in:
mobius
2015-01-02 16:44:45 +00:00
parent 94b2621431
commit 54c0ceafb8
439 changed files with 63249 additions and 62327 deletions

View File

@ -519,6 +519,17 @@ public final class RequestAcquireSkill extends L2GameClientPacket
}
}
if (!s.getRemoveSkills().isEmpty())
{
s.getRemoveSkills().forEach(sk ->
{
if (player.getSkillLevel(sk) > 0)
{
player.removeSkill(sk, true);
}
});
}
// If the player has SP and all required items then consume SP.
if (levelUpSp > 0)
{

View File

@ -19,6 +19,7 @@
package com.l2jserver.gameserver.network.clientpackets;
import com.l2jserver.Config;
import com.l2jserver.gameserver.enums.MailType;
import com.l2jserver.gameserver.instancemanager.MailManager;
import com.l2jserver.gameserver.model.L2World;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
@ -81,7 +82,7 @@ public final class RequestRejectPostAttachment extends L2GameClientPacket
return;
}
if (!msg.hasAttachments() || (msg.getSendBySystem() != 0))
if (!msg.hasAttachments() || (msg.getMailType() != MailType.REGULAR))
{
return;
}