Jelajahi Sumber

- 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://svn.code.sf.net/p/rathena/svn/trunk@6314 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 tahun lalu
induk
melakukan
3caf2d4406
2 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 3 0
      Changelog-Trunk.txt
  2. 2 0
      src/map/atcommand.c

+ 3 - 0
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

+ 2 - 0
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