summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-12 16:39:38 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-12 16:39:38 +0300
commite5598d8183f8b5a015bade5d61a41e054311d5ec (patch)
tree001cd660a5d7893fd7c3b0ae5d9924dfadd2068d /src/net
parent750195bc4f8cc950830b2921f2432e4e23ba80ab (diff)
downloadmv-e5598d8183f8b5a015bade5d61a41e054311d5ec.tar.gz
mv-e5598d8183f8b5a015bade5d61a41e054311d5ec.tar.bz2
mv-e5598d8183f8b5a015bade5d61a41e054311d5ec.tar.xz
mv-e5598d8183f8b5a015bade5d61a41e054311d5ec.zip
Add packet SMSG_SKILL_NO_DAMAGE 0x09cb.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/beingrecv.cpp6
-rw-r--r--src/net/eathena/packetsin.inc1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/net/ea/beingrecv.cpp b/src/net/ea/beingrecv.cpp
index bc1229b5d..63d025556 100644
--- a/src/net/ea/beingrecv.cpp
+++ b/src/net/ea/beingrecv.cpp
@@ -380,7 +380,11 @@ void BeingRecv::processPlayerMoveToAttack(Net::MessageIn &msg)
void BeingRecv::processSkillNoDamage(Net::MessageIn &msg)
{
const int id = msg.readInt16("skill id");
- const int heal = msg.readInt16("heal");
+ int heal;
+ if (msg.getVersion() >= 20131223)
+ heal = msg.readInt32("heal");
+ else
+ heal = msg.readInt16("heal");
Being *const dstBeing = actorManager->findBeing(
msg.readBeingId("dst being id"));
Being *const srcBeing = actorManager->findBeing(
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index 6b3e35e71..2da521008 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -766,6 +766,7 @@ if (packetVersion >= 20131223)
packet(SMSG_BEING_SPAWN, 0x09dc, -1, &BeingRecv::processBeingSpawn, 20131223);
packet(SMSG_BEING_VISIBLE, 0x09dd, -1, &BeingRecv::processBeingVisible, 20131223);
packet(SMSG_WHISPER_RESPONSE, 0x09df, 7, &ChatRecv::processWhisperResponse, 20131223);
+ packet(SMSG_SKILL_NO_DAMAGE, 0x09cb, 17, &Ea::BeingRecv::processSkillNoDamage, 20131223);
}
// 20141016