diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-09 17:53:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-09 17:53:52 +0300 |
commit | 4fe5fd9a471760c8ce54c71c8cdf3f27c8fb27ae (patch) | |
tree | 4efae7d8e5ef3f60b5b8dd9231fa2770492908a0 /src/net/ea/beinghandler.cpp | |
parent | 0de391b6566f347d546be4dc56999b3c502fa46b (diff) | |
download | manaplus-4fe5fd9a471760c8ce54c71c8cdf3f27c8fb27ae.tar.gz manaplus-4fe5fd9a471760c8ce54c71c8cdf3f27c8fb27ae.tar.bz2 manaplus-4fe5fd9a471760c8ce54c71c8cdf3f27c8fb27ae.tar.xz manaplus-4fe5fd9a471760c8ce54c71c8cdf3f27c8fb27ae.zip |
On skill attacks on target for show effect use skill attribute skillHitEffectId.
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index eeffe62f5..40ee477a0 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -162,7 +162,7 @@ void BeingHandler::processSkillDamage(Net::MessageIn &msg) if (srcBeing) srcBeing->handleSkill(dstBeing, param1, id, level); if (dstBeing) - dstBeing->takeDamage(srcBeing, param1, AttackType::SKILL, id); + dstBeing->takeDamage(srcBeing, param1, AttackType::SKILL, id, level); BLOCK_END("BeingHandler::processSkillDamage") } @@ -206,8 +206,9 @@ void BeingHandler::processBeingAction(Net::MessageIn &msg) } if (dstBeing) { + // level not present, using 1 dstBeing->takeDamage(srcBeing, param1, - static_cast<AttackType::Type>(type)); + static_cast<AttackType::Type>(type), 1); } break; |