summaryrefslogtreecommitdiff
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
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
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/clif.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 06835a1c8..96ab2d072 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/08/03
+ * Corrected clif.c sending the raw mdef2 value to the client instead of
+ first substracting the "secret vit/2" bonus from it. [Skotlex]
* Added a damage cap to CR_ACIDDEMONSTRATION of INT_MAX/2 to prevent
overflows. It is not capped to INT_MAX because damage increasing skills
would cause it to still overflow afterwards. [Skotlex]
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;