summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-10-28 05:50:48 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-10-28 05:50:48 +0000
commit5d773f9dd6ec7e8235145d1bb6eeefd04a892506 (patch)
tree4d279f491741a327bf2306937e2a4304b319ac6e
parentb8930b01796ed45000a6929b56d1f3a92b8d40c0 (diff)
downloadhercules-5d773f9dd6ec7e8235145d1bb6eeefd04a892506.tar.gz
hercules-5d773f9dd6ec7e8235145d1bb6eeefd04a892506.tar.bz2
hercules-5d773f9dd6ec7e8235145d1bb6eeefd04a892506.tar.xz
hercules-5d773f9dd6ec7e8235145d1bb6eeefd04a892506.zip
Made script command "unequip" call status_calc_pc. Thanks to Orcao. (bugreport:2368).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13332 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/script.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 049e73428..35d572a4f 100644
--- a/Changelog-Trunk.txt
+++ b/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]
diff --git a/src/map/script.c b/src/map/script.c
index b7367c8fe..9199c5047 100644
--- a/src/map/script.c
+++ b/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;