summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-03 18:06:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-03 18:06:22 +0000
commit5e67abec3523629759843c60744f9c35771688ba (patch)
treec90af0c87c233e3ffbe1d870f27c637fb84fbe02 /src/map
parent580d24c38445c8b7b9b7a347f23e9a2fb4d123ec (diff)
downloadhercules-5e67abec3523629759843c60744f9c35771688ba.tar.gz
hercules-5e67abec3523629759843c60744f9c35771688ba.tar.bz2
hercules-5e67abec3523629759843c60744f9c35771688ba.tar.xz
hercules-5e67abec3523629759843c60744f9c35771688ba.zip
- Corrected clif.c sending the raw mdef2 value to the client instead of first substracting the "secret vit/2" bonus from it.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8109 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-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 92fac24f3..44eee8c21 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2703,7 +2703,7 @@ int clif_updatestatus(struct map_session_data *sd,int type)
WFIFOL(fd,4)=sd->battle_status.def2;
break;
case SP_MDEF2:
- WFIFOL(fd,4)=sd->battle_status.mdef2;
+ WFIFOL(fd,4)=sd->battle_status.mdef2 - (sd->battle_status.vit>>1);
break;
case SP_CRITICAL:
WFIFOL(fd,4)=sd->battle_status.cri/10;
@@ -3028,7 +3028,7 @@ int clif_initialstatus(struct map_session_data *sd)
WBUFW(buf,24) = sd->battle_status.def; // def
WBUFW(buf,26) = sd->battle_status.def2;
WBUFW(buf,28) = sd->battle_status.mdef; // mdef
- WBUFW(buf,30) = sd->battle_status.mdef2;
+ WBUFW(buf,30) = sd->battle_status.mdef2 - (sd->battle_status.vit>>1);
WBUFW(buf,32) = sd->battle_status.hit;
WBUFW(buf,34) = sd->battle_status.flee;
WBUFW(buf,36) = sd->battle_status.flee2/10;