summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-16 02:14:45 -0300
committershennetsind <ind@henn.et>2013-04-16 02:14:45 -0300
commit08ad9b1257a2db3db9718efe6abbc868ad67118e (patch)
tree556650b9415afd6a19ed6d1d6f22f786d676f393 /src/map/status.c
parent370bfb735bb59761cc7b5d2fbe84b6739125c3c4 (diff)
downloadhercules-08ad9b1257a2db3db9718efe6abbc868ad67118e.tar.gz
hercules-08ad9b1257a2db3db9718efe6abbc868ad67118e.tar.bz2
hercules-08ad9b1257a2db3db9718efe6abbc868ad67118e.tar.xz
hercules-08ad9b1257a2db3db9718efe6abbc868ad67118e.zip
Fixed Bug #5811
Bleeding is now considered your damage vs mobs, before it wouldn't take it in account for exp calculation http://hercules.ws/board/tracker/issue-5811-bleeding-is-not-your-damage/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 7412467c3..0ed7b02dc 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -9884,6 +9884,9 @@ int status_change_timer(int tid, unsigned int tick, int id, intptr_t data)
if (--(sce->val4) >= 0) {
int hp = rnd()%600 + 200;
struct block_list* src = map_id2bl(sce->val2);
+ if( src && bl && bl->type == BL_MOB ) {
+ mob_log_damage((TBL_MOB*)bl,src,sd||hp<status->hp?hp:status->hp-1);
+ }
map_freeblock_lock();
status_fix_damage(src, bl, sd||hp<status->hp?hp:status->hp-1, 1);
if( sc->data[type] ) {