From c5a5274c86201b74325a8b84ab4543c73959c5d5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Nov 2016 20:19:53 +0300 Subject: Dont send some packets with unsupported server versions. --- src/net/eathena/homunculushandler.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/net/eathena/homunculushandler.cpp') diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp index 9de5a29ea..1c3a724f5 100644 --- a/src/net/eathena/homunculushandler.cpp +++ b/src/net/eathena/homunculushandler.cpp @@ -30,6 +30,7 @@ #include "debug.h" extern Net::HomunculusHandler *homunculusHandler; +extern int packetVersion; namespace EAthena { @@ -80,6 +81,8 @@ void HomunculusHandler::attack(const BeingId targetId, void HomunculusHandler::feed() const { + if (packetVersion < 20050425) + return; createOutPacket(CMSG_HOMUNCULUS_MENU); outMsg.writeInt16(0, "type"); outMsg.writeInt8(1, "command"); // feed @@ -87,6 +90,8 @@ void HomunculusHandler::feed() const void HomunculusHandler::fire() const { + if (packetVersion < 20050425) + return; createOutPacket(CMSG_HOMUNCULUS_MENU); outMsg.writeInt16(0, "type"); outMsg.writeInt8(2, "command"); // delete -- cgit v1.2.3-60-g2f50