diff options
author | shennetsind <ind@henn.et> | 2013-03-29 14:18:00 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-03-29 14:18:00 -0300 |
commit | 67487bf98b96f95a70317f300c0a8c5d0f9e0cf3 (patch) | |
tree | 828e4b8a659c69ae3b26c34933d4f54b9d53bd0e /src | |
parent | 6ee3d513e882a76aa044f68bc52f2fd8010d8b84 (diff) | |
parent | aef88a8db3cc4f3bda860b044fa4fdf5d4611ef8 (diff) | |
download | hercules-67487bf98b96f95a70317f300c0a8c5d0f9e0cf3.tar.gz hercules-67487bf98b96f95a70317f300c0a8c5d0f9e0cf3.tar.bz2 hercules-67487bf98b96f95a70317f300c0a8c5d0f9e0cf3.tar.xz hercules-67487bf98b96f95a70317f300c0a8c5d0f9e0cf3.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
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 |