diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-17 13:36:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-17 13:36:17 +0300 |
commit | d220dec50c6fb9218092e8caab87fcee6ef11e71 (patch) | |
tree | 0f5068c2882e15996acd34fd63ebf43bce5baebc /src/net | |
parent | 66f684799ad742d6214a6e3e9107219bef48b3f0 (diff) | |
download | manaverse-d220dec50c6fb9218092e8caab87fcee6ef11e71.tar.gz manaverse-d220dec50c6fb9218092e8caab87fcee6ef11e71.tar.bz2 manaverse-d220dec50c6fb9218092e8caab87fcee6ef11e71.tar.xz manaverse-d220dec50c6fb9218092e8caab87fcee6ef11e71.zip |
Use actual skill level in processing skill attack.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 4 |
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); } } |