summaryrefslogtreecommitdiff
path: root/src/map/clif.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/clif.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/clif.c')
-rw-r--r--src/map/clif.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 9ae88200c..1e1a98e09 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -11175,11 +11175,10 @@ void clif_parse_ChangeCart(int fd,struct map_session_data *sd)
/// status id:
/// SP_STR ~ SP_LUK
/// amount:
-/// client sends always 1 for this, even when using /str+ and
-/// the like
-void clif_parse_StatusUp(int fd,struct map_session_data *sd)
-{
- pc->statusup(sd,RFIFOW(fd,2));
+/// Old clients send always 1 for this, even when using /str+ and the like.
+/// Newer clients (2013-12-23 and newer) send the correct amount.
+void clif_parse_StatusUp(int fd,struct map_session_data *sd) {
+ pc->statusup(sd,RFIFOW(fd,2), RFIFOB(fd, 4));
}