summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-04-05 16:56:38 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-04-05 16:56:38 +0000
commitd07037d97e77264478e61855931e80191af29d26 (patch)
treec6443464b5c9b73f3087704d4e8fd8b5ec65eaf4
parentae18d430f3ba81a8a8ce00595a292a91d25ca5cb (diff)
downloadhercules-d07037d97e77264478e61855931e80191af29d26.tar.gz
hercules-d07037d97e77264478e61855931e80191af29d26.tar.bz2
hercules-d07037d97e77264478e61855931e80191af29d26.tar.xz
hercules-d07037d97e77264478e61855931e80191af29d26.zip
The dynamic mobs system will no longer de-spawn mvps (because it's annoying as hell).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13662 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index f80b9c226..d3bf14381 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2056,6 +2056,9 @@ int map_removemobs_sub(struct block_list *bl, va_list ap)
// is damaged and mob_remove_damaged is off
if( !battle_config.mob_remove_damaged && md->status.hp < md->status.max_hp )
return 0;
+ // is a mvp
+ if( md->db->mexp > 0 )
+ return 0;
unit_free(&md->bl,0);