summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-20 18:54:18 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-20 18:54:18 +0000
commit6ae26ef0260b6f25c3f68115c300020a2b5b84b9 (patch)
tree59212169d7917653a9de6fcf19abfb25a7bac8fa /src/map/clif.c
parentd8515bb0bf7a0c59f38923509ef52ba3a553dae8 (diff)
downloadhercules-6ae26ef0260b6f25c3f68115c300020a2b5b84b9.tar.gz
hercules-6ae26ef0260b6f25c3f68115c300020a2b5b84b9.tar.bz2
hercules-6ae26ef0260b6f25c3f68115c300020a2b5b84b9.tar.xz
hercules-6ae26ef0260b6f25c3f68115c300020a2b5b84b9.zip
- Fixed some Homunc issues with HR servers (capping some values)
- Added @hominfo command to obtain real values (not capped ones) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8378 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index bbf7370ce..295de5a15 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -1473,8 +1473,8 @@ int clif_hominfo(struct map_session_data *sd, struct homun_data *hd, int flag)
WBUFW(buf,29)=sd->homunculus.hunger;
WBUFW(buf,31)=(unsigned short) (sd->homunculus.intimacy / 100) ;
WBUFW(buf,33)=0; // equip id
- WBUFW(buf,35)=status->rhw.atk2+status->batk;
- WBUFW(buf,37)=status->matk_max;
+ WBUFW(buf,35)=cap_value(status->rhw.atk2+status->batk, 0, SHRT_MAX);
+ WBUFW(buf,37)=cap_value(status->matk_max, 0, SHRT_MAX);
WBUFW(buf,39)=status->hit;
WBUFW(buf,41)=status->cri/10; //crit is a +1 decimal value!
WBUFW(buf,43)=status->def + status->vit ;