diff options
author | DracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-17 07:40:12 +0000 |
---|---|---|
committer | DracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-17 07:40:12 +0000 |
commit | f13db5f2ef28fa672cf6e85381506fa1bc8d3842 (patch) | |
tree | de4d9b3d6e2ca3b1fbd0c440a4cb1d7f4456076d /src/map/pc.c | |
parent | f06ca93ee1b20398c45f5dcbb782e089260d7672 (diff) | |
download | hercules-f13db5f2ef28fa672cf6e85381506fa1bc8d3842.tar.gz hercules-f13db5f2ef28fa672cf6e85381506fa1bc8d3842.tar.bz2 hercules-f13db5f2ef28fa672cf6e85381506fa1bc8d3842.tar.xz hercules-f13db5f2ef28fa672cf6e85381506fa1bc8d3842.zip |
Skill lv up fix
Manually updated VS8 char_sql project
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7710 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index dc1ecbde7..f7c93c94f 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4371,10 +4371,16 @@ int pc_skillup(struct map_session_data *sd,int skill_num) { nullpo_retr(0, sd); - if( skill_num>=GD_SKILLBASE){ + if(skill_num >= GD_SKILLBASE){ guild_skillup(sd,skill_num,0); return 0; } + + if(skill_num >= HM_SKILLBASE){ + merc_hom_skillup(sd->hd, skill_num); + return 0; + } + if (skill_num < 0 || skill_num >= MAX_SKILL) return 0; |