summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-23 16:11:51 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-23 16:11:51 +0000
commit62c6e90f201643b5cebb81ce4bc58cd4a28cf8f6 (patch)
tree84426a12a3037ea6cfeea842331260a0d99b9718 /src/map/skill.c
parent43fe20d3fa5793b185d5f399c5c48075d4d6f842 (diff)
downloadhercules-62c6e90f201643b5cebb81ce4bc58cd4a28cf8f6.tar.gz
hercules-62c6e90f201643b5cebb81ce4bc58cd4a28cf8f6.tar.bz2
hercules-62c6e90f201643b5cebb81ce4bc58cd4a28cf8f6.tar.xz
hercules-62c6e90f201643b5cebb81ce4bc58cd4a28cf8f6.zip
- Standarized PF_MEMORIZE to be 50% cast time on all skills (instead of -50% for targetted skills and -66% for ground skills >.>)
- Cleared up the comment on what item_check does and how it works. - Changed the pointer dummy_item to a normal struct variable. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7316 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index d2438c855..6bb438690 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8152,6 +8152,11 @@ int skill_castfix_sc (struct block_list *bl, int time)
time -= time * (sc->data[SC_SUFFRAGIUM].val1 * 15) / 100;
status_change_end(bl, SC_SUFFRAGIUM, -1);
}
+ if (sc->data[SC_MEMORIZE].timer != -1) {
+ time>>=1;
+ if ((--sc->data[SC_MEMORIZE].val2) <= 0)
+ status_change_end(bl, SC_MEMORIZE, -1);
+ }
if (sc->data[SC_POEMBRAGI].timer != -1)
time -= time * sc->data[SC_POEMBRAGI].val2 / 100;
}