diff options
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 19 |
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 { |