diff options
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index fd17105c9..0a75e7066 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -60,6 +60,7 @@ PlayerHandler::PlayerHandler() : SMSG_PLAYER_SHOW_EQUIP, SMSG_PLAYER_GET_EXP, SMSG_PVP_INFO, + SMSG_PLAYER_HEAL, 0 }; handledMessages = _messages; @@ -123,6 +124,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processPvpInfo(msg); break; + case SMSG_PLAYER_HEAL: + processPlayerHeal(msg); + break; + default: break; } @@ -424,4 +429,13 @@ void PlayerHandler::setViewEquipment(const bool allow) const outMsg.writeInt32(allow ? 1 : 0); } +void PlayerHandler::processPlayerHeal(Net::MessageIn &msg) +{ + // +++ probably need show effect or adjust hp/sp? + // 5 - hp + // 7 - sp + msg.readInt16("var id"); + msg.readInt16("value"); +} + } // namespace EAthena |