From 4fe5fd9a471760c8ce54c71c8cdf3f27c8fb27ae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 9 Apr 2015 17:53:52 +0300 Subject: On skill attacks on target for show effect use skill attribute skillHitEffectId. --- src/net/ea/beinghandler.cpp | 5 +++-- src/net/eathena/beinghandler.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/net') 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(type)); + static_cast(type), 1); } break; diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 3f0ecf4ac..b0620b1f2 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -1306,8 +1306,9 @@ void BeingHandler::processBeingAction2(Net::MessageIn &msg) } if (dstBeing) { + // level not present, using 1 dstBeing->takeDamage(srcBeing, param1, - static_cast(type)); + static_cast(type), 1); } break; -- cgit v1.2.3-60-g2f50