summaryrefslogtreecommitdiff
path: root/src/net/eathena/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-18 12:52:40 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-18 12:52:40 +0300
commit64fc4f0ccf6cfb25864e67e3f8cf29d4671c64d5 (patch)
treefa6dff8aa086eef0a8ecfc0eb67bb2028b86e772 /src/net/eathena/skillhandler.cpp
parentea62d7b05f332f13e3a88ee24c3946600a77a085 (diff)
downloadplus-64fc4f0ccf6cfb25864e67e3f8cf29d4671c64d5.tar.gz
plus-64fc4f0ccf6cfb25864e67e3f8cf29d4671c64d5.tar.bz2
plus-64fc4f0ccf6cfb25864e67e3f8cf29d4671c64d5.tar.xz
plus-64fc4f0ccf6cfb25864e67e3f8cf29d4671c64d5.zip
Add skills duration/cooldown.
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r--src/net/eathena/skillhandler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index da8b94d11..640b6fbbc 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -149,9 +149,10 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg)
void SkillHandler::processSkillCoolDown(Net::MessageIn &msg)
{
- // +++ need add cool down bar in skills window and in ministatus?
- msg.readInt16("skill id");
- msg.readInt32("duration");
+ const int skillId = msg.readInt16("skill id");
+ const int duration = msg.readInt32("duration");
+ if (skillDialog)
+ skillDialog->setSkillDuration(skillId, duration);
}
} // namespace EAthena