diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-08 12:18:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-08 12:18:21 +0300 |
commit | b7459717ecbcef46edd6e080e8dac481161a2bb5 (patch) | |
tree | 89de8c862ab7eb568c22d21da833230ef5829673 /src/net/eathena/beinghandler.cpp | |
parent | b165b310ed35a078d6b3b479a4810bce884da1c2 (diff) | |
download | manaplus-b7459717ecbcef46edd6e080e8dac481161a2bb5.tar.gz manaplus-b7459717ecbcef46edd6e080e8dac481161a2bb5.tar.bz2 manaplus-b7459717ecbcef46edd6e080e8dac481161a2bb5.tar.xz manaplus-b7459717ecbcef46edd6e080e8dac481161a2bb5.zip |
eathena: partially add packet SMSG_SKILL_AUTO_CAST 0x0147.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 31cc4fc6a..267ed3f7b 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -96,6 +96,7 @@ BeingHandler::BeingHandler(const bool enableSync) : SMSG_MAP_TYPE_PROPERTY2, SMSG_MONSTER_HP, SMSG_PLAYER_HP, + SMSG_SKILL_AUTO_CAST, 0 }; handledMessages = _messages; @@ -134,6 +135,10 @@ void BeingHandler::handleMessage(Net::MessageIn &msg) processSkillDamage(msg); break; + case SMSG_SKILL_AUTO_CAST: + processSkillAutoCast(msg); + break; + case SMSG_BEING_ACTION: processBeingAction(msg); break; @@ -1070,4 +1075,16 @@ void BeingHandler::processMonsterHp(Net::MessageIn &msg) const } } +void BeingHandler::processSkillAutoCast(Net::MessageIn &msg) const +{ + msg.readInt16("skill id"); + msg.readInt16("inf"); + msg.readInt16("unused"); + msg.readInt16("skill level"); + msg.readInt16("sp"); + msg.readInt16("range"); + msg.readString(24, "skill name"); + msg.readInt8("unused"); +} + } // namespace EAthena |