summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 66bf68555..2c93bb4ba 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2083,6 +2083,11 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
log_mvpdrop(mvp_sd, md->class_, log_mvp);
}
+ if (flag&2 && !sd && md->class_ == MOBID_EMPERIUM)
+ //Emperium destroyed by script. Discard mvp character. [Skotlex]
+ mvp_sd = NULL;
+
+
// <Agit> NPC Event [OnAgitBreak]
if(md->npc_event[0] && strcmp(((md->npc_event)+strlen(md->npc_event)-13),"::OnAgitBreak") == 0) {
ShowNotice("MOB.C: Run NPC_Event[OnAgitBreak].\n");