From c446dbe94054a6c5b5557d5930afc21b9d7887ab Mon Sep 17 00:00:00 2001 From: brianluau Date: Sat, 30 May 2009 21:23:03 +0000 Subject: - 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 --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map') 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]; -- cgit v1.2.3-70-g09d2