summaryrefslogtreecommitdiff
path: root/src/net/eathena/elementalhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/elementalhandler.cpp')
-rw-r--r--src/net/eathena/elementalhandler.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/elementalhandler.cpp b/src/net/eathena/elementalhandler.cpp
index dc21746cd..8dc8b6684 100644
--- a/src/net/eathena/elementalhandler.cpp
+++ b/src/net/eathena/elementalhandler.cpp
@@ -35,6 +35,7 @@ ElementalHandler::ElementalHandler() :
static const uint16_t _messages[] =
{
SMSG_ELEMENTAL_UPDATE_STATUS,
+ SMSG_ELEMENTAL_INFO,
0
};
handledMessages = _messages;
@@ -49,6 +50,10 @@ void ElementalHandler::handleMessage(Net::MessageIn &msg)
processElementalUpdateStatus(msg);
break;
+ case SMSG_ELEMENTAL_INFO:
+ processElementalInfo(msg);
+ break;
+
default:
break;
}
@@ -60,4 +65,13 @@ void ElementalHandler::processElementalUpdateStatus(Net::MessageIn &msg)
msg.readInt32("value");
}
+void ElementalHandler::processElementalInfo(Net::MessageIn &msg)
+{
+ msg.readInt32("elemental id");
+ msg.readInt32("hp");
+ msg.readInt32("max hp");
+ msg.readInt32("sp");
+ msg.readInt32("max sp");
+}
+
} // namespace EAthena