From aef88a8db3cc4f3bda860b044fa4fdf5d4611ef8 Mon Sep 17 00:00:00 2001 From: malufett Date: Fri, 29 Mar 2013 20:42:51 +0800 Subject: 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 --- src/map/skill.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3-70-g09d2