diff options
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r-- | src/net/eathena/pethandler.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index f96176c38..1b8f77881 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -22,9 +22,11 @@ #include "gui/chatconsts.h" +#include "net/chathandler.h" #include "net/net.h" -#include "net/chathandler.h" +#include "net/eathena/messageout.h" +#include "net/eathena/protocol.h" #include "debug.h" @@ -74,4 +76,13 @@ void PetHandler::emote(const uint8_t emoteId, const int petId A_UNUSED) static_cast<int>(emoteId), mRandCounter), GENERAL_CHANNEL); } +void PetHandler::catchPet(const Being *const being) const +{ + if (!being) + return; + + MessageOut outMsg(CMSG_PET_CATCH); + outMsg.writeInt32(being->getId()); +} + } // namespace EAthena |