From edc5f649cbd8806b91f2ee2b65a458ca6ce22d2c Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 27 Apr 2006 14:25:02 +0000 Subject: - 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 --- Changelog-Trunk.txt | 3 +++ src/map/atcommand.c | 2 ++ 2 files changed, 5 insertions(+) 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 @@ -2763,6 +2763,8 @@ int atcommand_baselevelup( if (sd->status.status_point > 0) { 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 -- cgit v1.2.3-70-g09d2