From d220dec50c6fb9218092e8caab87fcee6ef11e71 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Dec 2012 13:36:17 +0300 Subject: Use actual skill level in processing skill attack. --- src/net/ea/beinghandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index bb7b7bc67..5df1ce823 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -460,7 +460,7 @@ void BeingHandler::processSkillDamage(Net::MessageIn &msg) msg.readInt32(); // src speed msg.readInt32(); // dst speed param1 = msg.readInt32(); // Damage - msg.readInt16(); // Skill level + const int level = msg.readInt16(); // Skill level msg.readInt16(); // Div msg.readInt8(); // Skill hit/type (?) if (dstBeing) @@ -474,7 +474,7 @@ void BeingHandler::processSkillDamage(Net::MessageIn &msg) // if (srcSpeed) // srcBeing->setAttackDelay(srcSpeed); // srcBeing->handleAttack(dstBeing, param1, Being::HIT); - srcBeing->handleSkill(dstBeing, param1, id); + srcBeing->handleSkill(dstBeing, param1, id, level); } } -- cgit v1.2.3-70-g09d2