summaryrefslogtreecommitdiff
path: root/src/net/eathena/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-02 13:34:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-02 13:34:13 +0300
commita4fb6c80502e707c19ab70432418295ea4c48d6a (patch)
tree3e499139025aff635e6220a19d9b4b1595753d34 /src/net/eathena/skillhandler.cpp
parent2e0f3379ea7f8440815b6615345778874fcf5a3a (diff)
downloadmanaverse-a4fb6c80502e707c19ab70432418295ea4c48d6a.tar.gz
manaverse-a4fb6c80502e707c19ab70432418295ea4c48d6a.tar.bz2
manaverse-a4fb6c80502e707c19ab70432418295ea4c48d6a.tar.xz
manaverse-a4fb6c80502e707c19ab70432418295ea4c48d6a.zip
eathena: add packet SMSG_PLAYER_DELETE_SKILL 0x0441.
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r--src/net/eathena/skillhandler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index de1b53c18..595f5a8a2 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -59,6 +59,7 @@ SkillHandler::SkillHandler() :
SMSG_PLAYER_SKILL_COOLDOWN_LIST,
SMSG_SKILL_SNAP,
SMSG_PLAYER_ADD_SKILL,
+ SMSG_PLAYER_DELETE_SKILL,
0
};
handledMessages = _messages;
@@ -97,6 +98,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg)
processSkillAdd(msg);
break;
+ case SMSG_PLAYER_DELETE_SKILL:
+ processSkillDelete(msg);
+ break;
+
default:
break;
}
@@ -207,6 +212,12 @@ void SkillHandler::processSkillAdd(Net::MessageIn &msg)
}
}
+void SkillHandler::processSkillDelete(Net::MessageIn &msg)
+{
+ // ignored, because after this packet server will send all skills.
+ msg.readInt32("skill id");
+}
+
void SkillHandler::processSkillCoolDown(Net::MessageIn &msg)
{
const int skillId = msg.readInt16("skill id");