summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-03-29 20:42:51 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2013-03-29 20:42:51 +0800
commitaef88a8db3cc4f3bda860b044fa4fdf5d4611ef8 (patch)
tree1272016b585fdce7c8350fea21cef31e842effa9 /src/map/skill.c
parent691b3e61f2e7ead7c3afa51cdc03d4e9f86f4fed (diff)
downloadhercules-aef88a8db3cc4f3bda860b044fa4fdf5d4611ef8.tar.gz
hercules-aef88a8db3cc4f3bda860b044fa4fdf5d4611ef8.tar.bz2
hercules-aef88a8db3cc4f3bda860b044fa4fdf5d4611ef8.tar.xz
hercules-aef88a8db3cc4f3bda860b044fa4fdf5d4611ef8.zip
Fixed Bug #5697
-where mob cast time is not working properly in PRE and RE. -mob cast time shouldn't now be altered by any means(stat and skills). Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 4342ca567..3d673d41e 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -13668,6 +13668,9 @@ int skill_castfix_sc (struct block_list *bl, int time)
if( time < 0 )
return 0;
+ if( bl->type == BL_MOB ) // mobs casttime is fixed nothing to alter.
+ return time;
+
if (sc && sc->count) {
if (sc->data[SC_SLOWCAST])
time += time * sc->data[SC_SLOWCAST]->val2 / 100;
@@ -13702,6 +13705,9 @@ int skill_vfcastfix (struct block_list *bl, double time, uint16 skill_id, uint16
if( time < 0 )
return 0;
+ if( bl->type == BL_MOB ) // mobs casttime is fixed nothing to alter.
+ return time;
+
if( fixed == 0 ){
fixed = (int)time * 20 / 100; // fixed time
time = time * 80 / 100; // variable time