diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/skill.c | 6 |
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 |