diff options
author | shennetsind <ind@henn.et> | 2013-04-16 02:14:45 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-16 02:14:45 -0300 |
commit | 08ad9b1257a2db3db9718efe6abbc868ad67118e (patch) | |
tree | 556650b9415afd6a19ed6d1d6f22f786d676f393 /src | |
parent | 370bfb735bb59761cc7b5d2fbe84b6739125c3c4 (diff) | |
download | hercules-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')
-rw-r--r-- | src/map/status.c | 3 |
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] ) { |