瀏覽代碼

Made script command "unequip" call status_calc_pc. Thanks to Orcao. (bugreport:2368).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13332 54d463be-8e91-2dee-dedb-b68131a5f0ec
Paradox924X 16 年之前
父節點
當前提交
787268e492
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 2 0
      Changelog-Trunk.txt
  2. 3 1
      src/map/script.c

+ 2 - 0
Changelog-Trunk.txt

@@ -3,6 +3,8 @@ 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.
 
+2008/10/28
+	* Made script command "unequip" call status_calc_pc. Thanks to Orcao. (bugreport:2368). [Paradox924X]
 2008/10/27
 	* Fixed all overflow checks and made the code a bit cleaner from r13322. [Paradox924X]
 	* Removed leftovers of "bLoseSPWhenUnequip" and "bDamageWhenUnequip". [Paradox924X]

+ 3 - 1
src/map/script.c

@@ -11458,8 +11458,10 @@ BUILDIN_FUNC(unequip)
 	if( sd != NULL && num >= 1 && num <= ARRAYLENGTH(equip) )
 	{
 		i = pc_checkequip(sd,equip[num-1]);
-		if (i >= 0)
+		if (i >= 0) {
 			pc_unequipitem(sd,i,2);
+			status_calc_pc(sd,0);
+		}
 		return 0;
 	}
 	return 0;