From 307818fecbd1f258c668a1667e76e950e9d22622 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 10 Mar 2012 18:04:32 +0300 Subject: Add to skills missile particle effect and hit/miss sounds. Add to skills use effect 100000 + skillid on target. --- src/net/ea/beinghandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net') diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index d9e7e7506..f1d608717 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -445,7 +445,7 @@ void BeingHandler::processSkillDamage(Net::MessageIn &msg) Being *dstBeing; int param1; - msg.readInt16(); // Skill Id + int id = msg.readInt16(); // Skill Id srcBeing = actorSpriteManager->findBeing(msg.readInt32()); dstBeing = actorSpriteManager->findBeing(msg.readInt32()); msg.readInt32(); // Server tick @@ -457,16 +457,16 @@ void BeingHandler::processSkillDamage(Net::MessageIn &msg) msg.readInt8(); // Skill hit/type (?) if (dstBeing) { - // Perhaps a new skill attack type should be created and used? // if (dstSpeed) // dstBeing->setAttackDelay(dstSpeed); - dstBeing->takeDamage(srcBeing, param1, Being::HIT); + dstBeing->takeDamage(srcBeing, param1, Being::SKILL, id); } if (srcBeing) { // if (srcSpeed) // srcBeing->setAttackDelay(srcSpeed); - srcBeing->handleAttack(dstBeing, param1, Being::HIT); +// srcBeing->handleAttack(dstBeing, param1, Being::HIT); + srcBeing->handleSkill(dstBeing, param1, id); } } -- cgit v1.2.3-70-g09d2