summaryrefslogtreecommitdiff
path: root/src/net/eathena/homunculushandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/homunculushandler.cpp')
-rw-r--r--src/net/eathena/homunculushandler.cpp5
1 files changed, 5 insertions, 0 deletions
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