diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-21 11:17:07 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-21 11:17:07 +0000 |
commit | 1f167df54078c959771c8d0b064cad337e541107 (patch) | |
tree | 0c2c3c16545cdec9916398872d202840dcdb0685 /src/map/skill.c | |
parent | c7bce63ecd9fb5d44c442791c13591aebd4dbb88 (diff) | |
download | hercules-1f167df54078c959771c8d0b064cad337e541107.tar.gz hercules-1f167df54078c959771c8d0b064cad337e541107.tar.bz2 hercules-1f167df54078c959771c8d0b064cad337e541107.tar.xz hercules-1f167df54078c959771c8d0b064cad337e541107.zip |
- Removed SC_INCAGIRATE/SC_INCDEXRATE as they are not used anymore (and where even incompletely coded)
- Added SC_INCASPDRATE, SC_INCFLEE2, SC_INCCRI, SC_INCDEF, SC_INCBASEATK and SC_FASTCAST as these are required by the newer items.
- Cleaned a bit the implementation of Suffragium
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11535 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 587197ecb..46d47432b 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -8869,10 +8869,11 @@ int skill_castfix_sc (struct block_list *bl, int time) if (sc && sc->count) { if (sc->data[SC_SLOWCAST].timer != -1) - time+= time * sc->data[SC_SLOWCAST].val2 / 100; - + time += time * sc->data[SC_SLOWCAST].val2 / 100; + if (sc->data[SC_FASTCAST].timer != -1) + time -= time * sc->data[SC_FASTCAST].val1 / 100; if (sc->data[SC_SUFFRAGIUM].timer != -1) { - time -= time * (sc->data[SC_SUFFRAGIUM].val1 * 15) / 100; + time -= time * sc->data[SC_SUFFRAGIUM].val2 / 100; status_change_end(bl, SC_SUFFRAGIUM, -1); } if (sc->data[SC_MEMORIZE].timer != -1) { |