summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2017-03-16 20:22:49 +0000
committerAsheraf <acheraf1998@gmail.com>2017-03-16 21:04:29 +0000
commit0023b7380e028676e6e81f4e3ccd63932386b3c8 (patch)
tree73e389225155fb4a57f3415e0c7fd6d614487a5d /src/map/skill.c
parent1e03a5b09d71741e267147cfcd522f9ad7a53dc2 (diff)
downloadhercules-0023b7380e028676e6e81f4e3ccd63932386b3c8.tar.gz
hercules-0023b7380e028676e6e81f4e3ccd63932386b3c8.tar.bz2
hercules-0023b7380e028676e6e81f4e3ccd63932386b3c8.tar.xz
hercules-0023b7380e028676e6e81f4e3ccd63932386b3c8.zip
Correct Castling skill to use cooldown
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index cd7006de0..70db5b341 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8181,8 +8181,14 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
int x,y;
x = src->x;
y = src->y;
- if (hd)
- skill->blockhomun_start(hd, skill_id, skill->get_time2(skill_id,skill_lv));
+ if (hd) {
+#ifdef RENEWAL
+ skill->blockhomun_start(hd, skill_id, skill->get_cooldown(skill_id, skill_lv));
+#else
+ skill->blockhomun_start(hd, skill_id, skill->get_time2(skill_id, skill_lv));
+#endif
+ }
+
if (unit->movepos(src,bl->x,bl->y,0,0)) {
clif->skill_nodamage(src,src,skill_id,skill_lv,1); // Homun