From d4093db5208073bfde366fd225ba05408da4a1b7 Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Mon, 6 Oct 2008 20:17:26 +0000 Subject: 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 --- src/map/mob.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map') 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); -- cgit v1.2.3-70-g09d2