summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-02-03 03:17:29 +0100
committerHaru <haru@dotalux.com>2014-02-03 17:59:25 +0100
commit42b5c048e3d97be93c71f81f84ff37c502f96163 (patch)
tree2525ecd27cddf23c11e78e8f8207c41bd63f757a /src/map/script.c
parent2263dc4660c6668c373f6a9e654e21bea8c419e4 (diff)
downloadhercules-42b5c048e3d97be93c71f81f84ff37c502f96163.tar.gz
hercules-42b5c048e3d97be93c71f81f84ff37c502f96163.tar.bz2
hercules-42b5c048e3d97be93c71f81f84ff37c502f96163.tar.xz
hercules-42b5c048e3d97be93c71f81f84ff37c502f96163.zip
Added /stat+ commands support for 2013-12+ clients
- Fixes /str+, /agi+ and the likes, only being able to increase stats by 1 point on 2013-12 and newer clients. - As a bonus, on those clients, processing of the /stat+ commands will be much faster, and the requested points will be added instantly and all at once rather than one at a time like in older clients. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c
index adea269c7..21d55ca77 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -7803,8 +7803,7 @@ BUILDIN(delequip)
/*==========================================
*
*------------------------------------------*/
-BUILDIN(statusup)
-{
+BUILDIN(statusup) {
int type;
TBL_PC *sd;
@@ -7813,7 +7812,7 @@ BUILDIN(statusup)
if( sd == NULL )
return true;
- pc->statusup(sd,type);
+ pc->statusup(sd, type, 1);
return true;
}