summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-08 12:18:21 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-08 12:18:21 +0300
commitb7459717ecbcef46edd6e080e8dac481161a2bb5 (patch)
tree89de8c862ab7eb568c22d21da833230ef5829673 /src/net/eathena/beinghandler.cpp
parentb165b310ed35a078d6b3b479a4810bce884da1c2 (diff)
downloadmanaverse-b7459717ecbcef46edd6e080e8dac481161a2bb5.tar.gz
manaverse-b7459717ecbcef46edd6e080e8dac481161a2bb5.tar.bz2
manaverse-b7459717ecbcef46edd6e080e8dac481161a2bb5.tar.xz
manaverse-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.cpp17
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