summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt3
-rw-r--r--src/map/atcommand.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 89e02d5fc..d663cb372 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,9 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/04/27
+ * 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. [Skotlex]
* Added at command @commands, displays the list of commands available to
you. Defaults to level 1. [Skotlex]
* Added the missing clif_* calls to make changebase's view-class change
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;