Cleanup of MVP mode checking (#5559)

Fixes #5368

Thanks to @mazvi, @attackjom and @aleos89
This commit is contained in:
Lemongrass3110
2020-11-22 02:09:02 +01:00
committed by GitHub
parent 90d74c2ed1
commit f37990414f
14 changed files with 75 additions and 50 deletions

View File

@@ -2926,7 +2926,7 @@ int map_removemobs_sub(struct block_list *bl, va_list ap)
if( !battle_config.mob_remove_damaged && md->status.hp < md->status.max_hp )
return 0;
// is a mvp
if( md->db->mexp > 0 )
if( md->get_bosstype() == BOSSTYPE_MVP )
return 0;
unit_free(&md->bl,CLR_OUTSIGHT);