summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-21 09:47:45 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-21 09:47:45 +0000
commit11e4e27c3c483f6b391fa5263139dceaa881c0c2 (patch)
tree94b784a434a8142c5070a4984ac42ad422021460 /src/map/pc.c
parent5a735a416f33f355babfc150bcedcc220e684255 (diff)
downloadhercules-11e4e27c3c483f6b391fa5263139dceaa881c0c2.tar.gz
hercules-11e4e27c3c483f6b391fa5263139dceaa881c0c2.tar.bz2
hercules-11e4e27c3c483f6b391fa5263139dceaa881c0c2.tar.xz
hercules-11e4e27c3c483f6b391fa5263139dceaa881c0c2.zip
- Added elemental source files to the appropriate VS2010 filters
- Fixed status point cost not being set to 0 once maximum has been reached git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15903 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 7a0fc67fa..5a28f63b9 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5574,6 +5574,10 @@ int pc_need_status_point(struct map_session_data* sd, int type, int val)
return 0;
low = pc_getstat(sd,type);
+
+ if ( low >= pc_maxparameter(sd) && val > 0 )
+ return 0; // Official servers show '0' when max is reached
+
high = low + val;
if ( val < 0 )