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 --- src/map/atcommand.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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