From 4873453c6b49c8181cb4ad65393fcf2da4b6e02a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 22 Aug 2015 17:18:06 +0300 Subject: Show skill effects with packet SMSG_SKILL_NO_DAMAGE. --- src/net/ea/beinghandler.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index 2c2c65652..85e04efbc 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -394,12 +394,16 @@ void BeingHandler::processPlayerMoveToAttack(Net::MessageIn &msg) void BeingHandler::processSkillNoDamage(Net::MessageIn &msg) { - UNIMPLIMENTEDPACKET; - msg.readInt16("skill id"); - msg.readInt16("heal"); - msg.readInt32("dst id"); - msg.readInt32("src id"); - msg.readUInt8("fail"); + const int id = msg.readInt16("skill id"); + const int heal = msg.readInt16("heal"); + Being *const dstBeing = actorManager->findBeing( + msg.readBeingId("dst being id")); + Being *const srcBeing = actorManager->findBeing( + msg.readBeingId("src being id")); + const int flag = msg.readUInt8("fail"); + + if (srcBeing) + srcBeing->handleSkill(dstBeing, heal, id, 1); } void BeingHandler::processPvpMapMode(Net::MessageIn &msg) -- cgit v1.2.3-60-g2f50