Sync with L2JServer Jan 2nd 2015.
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user