diff options
Diffstat (limited to 'src/net/eathena/homunculushandler.cpp')
-rw-r--r-- | src/net/eathena/homunculushandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp index 567bad3e4..54c64cf59 100644 --- a/src/net/eathena/homunculushandler.cpp +++ b/src/net/eathena/homunculushandler.cpp @@ -185,4 +185,13 @@ void HomunculusHandler::setName(const std::string &name) const outMsg.writeString(name, 24, "name"); } +void HomunculusHandler::moveToMaster() const +{ + const int id = PlayerInfo::getHomunculusId(); + if (!id) + return; + createOutPacket(CMSG_HOMMERC_MOVE_TO_MASTER); + outMsg.writeInt32(id); +} + } // namespace EAthena |