summaryrefslogtreecommitdiff
path: root/src/net/eathena/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-25 20:32:49 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-25 20:32:49 +0300
commit3e25eaf71f76daaf846b640e691209a5f26e1cce (patch)
tree2b191d5c63956c7497c19e8d38269dc1f99ba5d9 /src/net/eathena/skillhandler.cpp
parent5d0e738a90341dff367c49e4dfefe8e6c565882f (diff)
downloadmv-3e25eaf71f76daaf846b640e691209a5f26e1cce.tar.gz
mv-3e25eaf71f76daaf846b640e691209a5f26e1cce.tar.bz2
mv-3e25eaf71f76daaf846b640e691209a5f26e1cce.tar.xz
mv-3e25eaf71f76daaf846b640e691209a5f26e1cce.zip
Add packet CMSG_SKILL_USE_BEING_START 0x0b10
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r--src/net/eathena/skillhandler.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index 0efad6190..1b97b5044 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -29,6 +29,8 @@
#include "debug.h"
extern int packetVersion;
+extern int packetVersionMain;
+extern int packetVersionRe;
extern int packetVersionZero;
namespace EAthena
@@ -54,6 +56,23 @@ void SkillHandler::useBeing(const int id, const int level,
outMsg.writeInt32(toInt(beingId, int), "target id");
}
+void SkillHandler::useBeingStart(const int id,
+ const int level,
+ const BeingId beingId) const
+{
+ if (packetVersionMain < 20181002 &&
+ packetVersionRe < 20181002 &&
+ packetVersionZero < 20181010)
+ {
+ return;
+ }
+
+ createOutPacket(CMSG_SKILL_USE_BEING_START);
+ outMsg.writeInt16(CAST_S16(level), "skill level");
+ outMsg.writeInt16(CAST_S16(id), "skill id");
+ outMsg.writeInt32(toInt(beingId, int), "target id");
+}
+
void SkillHandler::usePos(const int id, const int level,
const int x, const int y) const
{