summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-02 19:34:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-02 19:34:51 +0300
commit9a3120e7c3d89c3d35d5032114b387e49d462154 (patch)
treed5e516b5f5b3e23071e10c957ee228d470d890a2 /src/net/ea
parent568c267f26da3e4b183c0190dd048102f4d933c9 (diff)
downloadmanaverse-9a3120e7c3d89c3d35d5032114b387e49d462154.tar.gz
manaverse-9a3120e7c3d89c3d35d5032114b387e49d462154.tar.bz2
manaverse-9a3120e7c3d89c3d35d5032114b387e49d462154.tar.xz
manaverse-9a3120e7c3d89c3d35d5032114b387e49d462154.zip
Sort more packets. Add version checks inside packets.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/beingrecv.cpp28
-rw-r--r--src/net/ea/beingrecv.h1
2 files changed, 0 insertions, 29 deletions
diff --git a/src/net/ea/beingrecv.cpp b/src/net/ea/beingrecv.cpp
index 9796af9ce..fa1f47c69 100644
--- a/src/net/ea/beingrecv.cpp
+++ b/src/net/ea/beingrecv.cpp
@@ -144,34 +144,6 @@ void BeingRecv::processBeingRemove(Net::MessageIn &msg)
BLOCK_END("BeingRecv::processBeingRemove")
}
-void BeingRecv::processSkillDamage(Net::MessageIn &msg)
-{
- BLOCK_START("BeingRecv::processSkillDamage")
- if (!actorManager)
- {
- BLOCK_END("BeingRecv::processSkillDamage")
- return;
- }
-
- const int id = msg.readInt16("skill id");
- Being *const srcBeing = actorManager->findBeing(
- msg.readBeingId("src being id"));
- Being *const dstBeing = actorManager->findBeing(
- msg.readBeingId("dst being id"));
- msg.readInt32("tick");
- msg.readInt32("src speed");
- msg.readInt32("dst speed");
- const int param1 = msg.readInt32("damage");
- const int level = msg.readInt16("skill level");
- msg.readInt16("div");
- msg.readUInt8("skill hit/type?");
- if (srcBeing)
- srcBeing->handleSkill(dstBeing, param1, id, level);
- if (dstBeing)
- dstBeing->takeDamage(srcBeing, param1, AttackType::SKILL, id, level);
- BLOCK_END("BeingRecv::processSkillDamage")
-}
-
void BeingRecv::processBeingAction(Net::MessageIn &msg)
{
BLOCK_START("BeingRecv::processBeingAction")
diff --git a/src/net/ea/beingrecv.h b/src/net/ea/beingrecv.h
index d3b6a642d..9c98ba12e 100644
--- a/src/net/ea/beingrecv.h
+++ b/src/net/ea/beingrecv.h
@@ -43,7 +43,6 @@ namespace Ea
extern BeingId mSpawnId;
void processBeingRemove(Net::MessageIn &msg);
- void processSkillDamage(Net::MessageIn &msg);
void processBeingAction(Net::MessageIn &msg);
void processBeingEmotion(Net::MessageIn &msg);
void processNameResponse(Net::MessageIn &msg);