summaryrefslogtreecommitdiff
path: root/src/net/eathena/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-25 20:44:42 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-25 20:44:42 +0300
commit9f1d941ea4195ec4c4942fac47fde24c19265d5b (patch)
treeaf50f9ee1f1d6d869d1df3da1792a38d4d04d02a /src/net/eathena/skillhandler.cpp
parent3e25eaf71f76daaf846b640e691209a5f26e1cce (diff)
downloadplus-9f1d941ea4195ec4c4942fac47fde24c19265d5b.tar.gz
plus-9f1d941ea4195ec4c4942fac47fde24c19265d5b.tar.bz2
plus-9f1d941ea4195ec4c4942fac47fde24c19265d5b.tar.xz
plus-9f1d941ea4195ec4c4942fac47fde24c19265d5b.zip
Add packet CMSG_SKILL_USE_BEING_STOP 0x0b11
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r--src/net/eathena/skillhandler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index 1b97b5044..381c00231 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -73,6 +73,19 @@ void SkillHandler::useBeingStart(const int id,
outMsg.writeInt32(toInt(beingId, int), "target id");
}
+void SkillHandler::useStop(const int id) const
+{
+ if (packetVersionMain < 20181002 &&
+ packetVersionRe < 20181002 &&
+ packetVersionZero < 20181010)
+ {
+ return;
+ }
+
+ createOutPacket(CMSG_SKILL_USE_BEING_STOP);
+ outMsg.writeInt16(CAST_S16(id), "skill id");
+}
+
void SkillHandler::usePos(const int id, const int level,
const int x, const int y) const
{