diff options
author | salepate <salepate@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-25 01:03:59 +0000 |
---|---|---|
committer | salepate <salepate@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-25 01:03:59 +0000 |
commit | c652d46923e5b95a54ab16cf6ccc8eb74e5f4c08 (patch) | |
tree | 19e04c69b69ae3a37076931bbdb7f345d1c508f4 /src | |
parent | a35c5b98328c02b44dc7073d31abd4015a6846eb (diff) | |
download | hercules-c652d46923e5b95a54ab16cf6ccc8eb74e5f4c08.tar.gz hercules-c652d46923e5b95a54ab16cf6ccc8eb74e5f4c08.tar.bz2 hercules-c652d46923e5b95a54ab16cf6ccc8eb74e5f4c08.tar.xz hercules-c652d46923e5b95a54ab16cf6ccc8eb74e5f4c08.zip |
- reverted to r16668, erroneous fix
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16702 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/pc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 20e71988c..8ccccb46c 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5824,7 +5824,7 @@ int pc_statusup(struct map_session_data* sd, int type) /// @param val The stat increase amount. int pc_statusup2(struct map_session_data* sd, int type, int val) { - int max; + int max, need; nullpo_ret(sd); if( type < SP_STR || type > SP_LUK ) @@ -5833,6 +5833,8 @@ int pc_statusup2(struct map_session_data* sd, int type, int val) return 1; } + need = pc_need_status_point(sd,type,1); + // set new value max = pc_maxparameter(sd); val = pc_setstat(sd, type, cap_value(pc_getstat(sd,type) + val, 1, max)); @@ -5840,7 +5842,7 @@ int pc_statusup2(struct map_session_data* sd, int type, int val) status_calc_pc(sd,0); // update increase cost indicator - if( pc_need_status_point(sd, type, val) != pc_need_status_point(sd,type,1) ) + if( need != pc_need_status_point(sd,type,1) ) clif_updatestatus(sd, SP_USTR + type-SP_STR); // update stat value |