diff options
author | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-30 21:23:03 +0000 |
---|---|---|
committer | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-30 21:23:03 +0000 |
commit | c446dbe94054a6c5b5557d5930afc21b9d7887ab (patch) | |
tree | 859c21559e24cf963f9bb51d7c626b29b1f068fd /src | |
parent | c383a6150feccfa618de9516d96d66ad168eeb1c (diff) | |
download | hercules-c446dbe94054a6c5b5557d5930afc21b9d7887ab.tar.gz hercules-c446dbe94054a6c5b5557d5930afc21b9d7887ab.tar.bz2 hercules-c446dbe94054a6c5b5557d5930afc21b9d7887ab.tar.xz hercules-c446dbe94054a6c5b5557d5930afc21b9d7887ab.zip |
- Fixed an off-by-one array index in r13815 that caused skills to use SP for (SkillLV+1). (bugreport:3152)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13830 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/skill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index a504bf22c..51acc010b 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -8749,7 +8749,7 @@ struct skill_condition skill_get_requirement(struct map_session_data* sd, short else req.hp += (status->max_hp * (-hp_rate))/100; - req.sp = skill_db[j].sp[lv]; + req.sp = skill_db[j].sp[lv-1]; if((sd->skillid_old == BD_ENCORE) && skill == sd->skillid_dance) req.sp /= 2; sp_rate = skill_db[j].sp_rate[lv-1]; |