diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-27 14:25:02 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-27 14:25:02 +0000 |
commit | edc5f649cbd8806b91f2ee2b65a458ca6ce22d2c (patch) | |
tree | c12c7fcf6368be30397450ad7e4479e2430fdc95 /src/map | |
parent | 578728adfd125eeac56150705b41e05cd4d970e4 (diff) | |
download | hercules-edc5f649cbd8806b91f2ee2b65a458ca6ce22d2c.tar.gz hercules-edc5f649cbd8806b91f2ee2b65a458ca6ce22d2c.tar.bz2 hercules-edc5f649cbd8806b91f2ee2b65a458ca6ce22d2c.tar.xz hercules-edc5f649cbd8806b91f2ee2b65a458ca6ce22d2c.zip |
- Now when you do @baselevel to reduce your level and you don't have enough stat points to deduct, you will get a stat-reset and THEN your stat points will be reduced.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6314 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/atcommand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index c2d1d0d2f..aa2df5c7f 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2764,6 +2764,8 @@ int atcommand_baselevelup( for (i = 0; i > -level; i--)
status_point += (sd->status.base_level + i + 14) / 5;
if (sd->status.status_point < status_point)
+ pc_resetstate(sd);
+ if (sd->status.status_point < status_point)
sd->status.status_point = 0;
else
sd->status.status_point -= status_point;
|