diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-01 16:29:09 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-01 16:29:09 +0000 |
commit | 5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5 (patch) | |
tree | 8b939dc7ae15919ef14fb666214fbfb5347de2ec /src/map/map.c | |
parent | 312f6f88f6ad557924669557bfc41383f4d22e3f (diff) | |
download | hercules-5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5.tar.gz hercules-5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5.tar.bz2 hercules-5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5.tar.xz hercules-5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5.zip |
- 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
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |