diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-18 12:52:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-18 12:52:40 +0300 |
commit | 64fc4f0ccf6cfb25864e67e3f8cf29d4671c64d5 (patch) | |
tree | fa6dff8aa086eef0a8ecfc0eb67bb2028b86e772 /src/net | |
parent | ea62d7b05f332f13e3a88ee24c3946600a77a085 (diff) | |
download | manaplus-64fc4f0ccf6cfb25864e67e3f8cf29d4671c64d5.tar.gz manaplus-64fc4f0ccf6cfb25864e67e3f8cf29d4671c64d5.tar.bz2 manaplus-64fc4f0ccf6cfb25864e67e3f8cf29d4671c64d5.tar.xz manaplus-64fc4f0ccf6cfb25864e67e3f8cf29d4671c64d5.zip |
Add skills duration/cooldown.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 7 |
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 |