summaryrefslogtreecommitdiff
path: root/src/net/ea/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-17 13:36:17 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-17 13:36:17 +0300
commitd220dec50c6fb9218092e8caab87fcee6ef11e71 (patch)
tree0f5068c2882e15996acd34fd63ebf43bce5baebc /src/net/ea/beinghandler.cpp
parent66f684799ad742d6214a6e3e9107219bef48b3f0 (diff)
downloadmv-d220dec50c6fb9218092e8caab87fcee6ef11e71.tar.gz
mv-d220dec50c6fb9218092e8caab87fcee6ef11e71.tar.bz2
mv-d220dec50c6fb9218092e8caab87fcee6ef11e71.tar.xz
mv-d220dec50c6fb9218092e8caab87fcee6ef11e71.zip
Use actual skill level in processing skill attack.
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r--src/net/ea/beinghandler.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}
}