diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-27 12:18:18 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-27 12:18:18 +0000 |
commit | 63b4658868a7fec265ab1c46d86fe72bfa2a3549 (patch) | |
tree | 9e4d459440633705f8f90b1ee7988eea869407a8 /src/map/pc.c | |
parent | a3819e6f6a5a06139519221011502a76603dfbfc (diff) | |
download | hercules-63b4658868a7fec265ab1c46d86fe72bfa2a3549.tar.gz hercules-63b4658868a7fec265ab1c46d86fe72bfa2a3549.tar.bz2 hercules-63b4658868a7fec265ab1c46d86fe72bfa2a3549.tar.xz hercules-63b4658868a7fec265ab1c46d86fe72bfa2a3549.zip |
- Fixed base-level up @ command giving stat points instead of taking them away when leveling down.
- Some small change in pc_heal which would let you have negative SP if you were killed on the same pc_heal invocation.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6307 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index b39bd4a73..90fc5dfe9 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5126,14 +5126,14 @@ int pc_heal(struct map_session_data *sd,int hp,int sp) sp = sd->status.max_sp - sd->status.sp;
sd->status.sp+=sp;
+ if(sd->status.sp <= 0)
+ sd->status.sp = 0;
if(sd->status.hp <= 0) {
sd->status.hp = 0;
pc_damage(NULL,sd,1);
hp = 0;
}
- if(sd->status.sp <= 0)
- sd->status.sp = 0;
if(hp)
clif_updatestatus(sd,SP_HP);
|