summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-10-06 20:17:26 +0000
committerL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-10-06 20:17:26 +0000
commitd4093db5208073bfde366fd225ba05408da4a1b7 (patch)
tree3deb760caadeff7209dcca3f664e5e4e7fa000a0 /src/map
parent6dda35a216e1f35278f4465ad5bc124ab113da36 (diff)
downloadhercules-d4093db5208073bfde366fd225ba05408da4a1b7.tar.gz
hercules-d4093db5208073bfde366fd225ba05408da4a1b7.tar.bz2
hercules-d4093db5208073bfde366fd225ba05408da4a1b7.tar.xz
hercules-d4093db5208073bfde366fd225ba05408da4a1b7.zip
Damage count on rebirthed mobs is now reset. (Valaris)
Changed exp_calc_type to 1, as type 0 seems to be based off old rumour, and to compliment the update to mob_revive. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13264 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 1305a9eb7..809ce3f77 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2380,6 +2380,8 @@ void mob_revive(struct mob_data *md, unsigned int hp)
md->next_walktime = tick+rand()%50+5000;
md->last_linktime = tick;
md->last_pcneartime = 0;
+ memset(md->dmglog, 0, sizeof(md->dmglog)); // Reset the damage done on the rebirthed monster, otherwise will grant full exp + damage done. [Valaris]
+ md->tdmg = 0;
if (!md->bl.prev)
map_addblock(&md->bl);
clif_spawn(&md->bl);