From 5d773f9dd6ec7e8235145d1bb6eeefd04a892506 Mon Sep 17 00:00:00 2001 From: Paradox924X Date: Tue, 28 Oct 2008 05:50:48 +0000 Subject: 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 --- src/map/script.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map') 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; -- cgit v1.2.3-70-g09d2