From 5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 1 Mar 2007 16:29:09 +0000 Subject: - Updated the stun length to 5 secs of: Meteor Storm, Sonic Blow, Throw Stone, Sightless Raid, Smite, Cart Termination - SG Union will consume now SP if you use it while not soul linked. - Added variable "skip" to the mob spawn data, to know how many mobs to skip when spawning because they were not removed due to the "mob_remove_damaged" setting. - Corrected the Hp/Sp regen formulas from Hp/Sp/Spirit Recovery and Happy/Peaceful break according to recent forums discussions (formula is changed from x*lv +max*lv/500 to lv*(x+max/500). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9944 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index 1ea7498f5..e69d5956c 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -2025,7 +2025,11 @@ int mob_cache_cleanup_sub(struct block_list *bl, va_list ap) { return 0; if (!battle_config.mob_remove_damaged && md->status.hp < md->status.max_hp) + { + if (md->spawn && md->spawn_n >= 0) //Do not respawn mob later. + map[md->spawn->m].moblist[md->spawn_n]->skip++; return 0; //Do not remove damaged mobs. + } unit_free(&md->bl,0); -- cgit v1.2.3-60-g2f50