summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-16 18:51:20 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-16 18:51:20 +0000
commit41426d1faab76c67ca6f8d71a6e36b5d9f053cce (patch)
treecf293802cd64654a99fcb35e55e85f47ae875c31 /src
parent8b373c803e492794ea0f2cc76981c21fe94fba7b (diff)
downloadhercules-41426d1faab76c67ca6f8d71a6e36b5d9f053cce.tar.gz
hercules-41426d1faab76c67ca6f8d71a6e36b5d9f053cce.tar.bz2
hercules-41426d1faab76c67ca6f8d71a6e36b5d9f053cce.tar.xz
hercules-41426d1faab76c67ca6f8d71a6e36b5d9f053cce.zip
- Modified "hide woe damage" to send the number of hits rather than 1 as damage Because when the damage is less than the number of hits, the client will display MISS.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6624 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/battle.c2
-rw-r--r--src/map/clif.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 39ded0982..c155aed11 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -251,7 +251,7 @@ int battle_damage(struct block_list *src,struct block_list *target,int damage, i
r_damage = pc_damage(src,(TBL_PC*)target,damage);
break;
case BL_SKILL:
- r_damage = skill_unit_ondamaged((struct skill_unit *)target, src, damage, gettick());
+ r_damage = skill_unit_ondamaged((struct skill_unit *)target, src, damage, gettick());
break;
}
diff --git a/src/map/clif.c b/src/map/clif.c
index 17da41933..340a666d3 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -3870,8 +3870,8 @@ int clif_damage(struct block_list *src,struct block_list *dst,unsigned int tick,
WBUFL(buf,14)=sdelay;
WBUFL(buf,18)=ddelay;
if (battle_config.hide_woe_damage && map_flag_gvg(src->m)) {
- WBUFW(buf,22)=1;
- WBUFW(buf,27)=1;
+ WBUFW(buf,22)=div;
+ WBUFW(buf,27)=damage2?div:0;
} else {
WBUFW(buf,22)=(damage > SHRT_MAX)?SHRT_MAX:damage;
WBUFW(buf,27)=damage2;
@@ -4390,7 +4390,7 @@ int clif_skill_damage(struct block_list *src,struct block_list *dst,
WBUFL(buf,16)=sdelay;
WBUFL(buf,20)=ddelay;
if (battle_config.hide_woe_damage && map_flag_gvg(src->m)) {
- WBUFW(buf,24)=1;
+ WBUFW(buf,24)=div;
} else {
WBUFW(buf,24)=damage;
}
@@ -4421,7 +4421,7 @@ int clif_skill_damage(struct block_list *src,struct block_list *dst,
WBUFL(buf,16)=sdelay;
WBUFL(buf,20)=ddelay;
if (battle_config.hide_woe_damage && map_flag_gvg(src->m)) {
- WBUFL(buf,24)=1;
+ WBUFL(buf,24)=div;
} else {
WBUFL(buf,24)=damage;
}
@@ -4481,7 +4481,7 @@ int clif_skill_damage2(struct block_list *src,struct block_list *dst,
WBUFW(buf,24)=dst->x;
WBUFW(buf,26)=dst->y;
if (battle_config.hide_woe_damage && map_flag_gvg(src->m)) {
- WBUFW(buf,28)=1;
+ WBUFW(buf,28)=div;
} else {
WBUFW(buf,28)=damage;
}