From 42acbf2e1acf3d200ec3ca1da566488db7dc07bd Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 16 Jun 2006 15:39:16 +0000 Subject: - Removed db_tables.sql as it's no longer used. - the mvp_sd is removed when the mob is the emperium and there's no killer/exp-awarded (assumed killed by script), this prevents the on-kill event from triggering and giving the castle to whoever damaged the most the emperium without destroying it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7208 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map') 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; + + // 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"); -- cgit v1.2.3-60-g2f50