summaryrefslogtreecommitdiff
path: root/src/net/eathena/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 21:06:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 21:06:09 +0300
commitdbca83014dbb36cd376ec2b7f9ba4be683b5829b (patch)
tree39030eaa8f198540de170797e654b0eb5d2723f0 /src/net/eathena/skillhandler.cpp
parent1ca01c7099f1655510a7d8daf215c5d469bfcf33 (diff)
downloadplus-dbca83014dbb36cd376ec2b7f9ba4be683b5829b.tar.gz
plus-dbca83014dbb36cd376ec2b7f9ba4be683b5829b.tar.bz2
plus-dbca83014dbb36cd376ec2b7f9ba4be683b5829b.tar.xz
plus-dbca83014dbb36cd376ec2b7f9ba4be683b5829b.zip
eathena: add partial support for packet SMSG_PLAYER_SKILL_COOLDOWN 0x043d.
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r--src/net/eathena/skillhandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index 162448660..da8b94d11 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -45,6 +45,7 @@ SkillHandler::SkillHandler() :
SMSG_PLAYER_SKILLS,
SMSG_SKILL_FAILED,
SMSG_PLAYER_SKILL_UP,
+ SMSG_PLAYER_SKILL_COOLDOWN,
0
};
handledMessages = _messages;
@@ -67,6 +68,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg)
processSkillFailed(msg);
break;
+ case SMSG_PLAYER_SKILL_COOLDOWN:
+ processSkillCoolDown(msg);
+ break;
+
default:
break;
}
@@ -142,4 +147,11 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg)
skillDialog->playUpdateEffect(updateSkill);
}
+void SkillHandler::processSkillCoolDown(Net::MessageIn &msg)
+{
+ // +++ need add cool down bar in skills window and in ministatus?
+ msg.readInt16("skill id");
+ msg.readInt32("duration");
+}
+
} // namespace EAthena