summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;