summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-16 15:39:16 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-16 15:39:16 +0000
commit42acbf2e1acf3d200ec3ca1da566488db7dc07bd (patch)
tree1e00c6c2005b23d02f595f440c9d72b01c3e502c /src
parentec60b2c2800e22cce2d3a24e4289b7e3c771f6f1 (diff)
downloadhercules-42acbf2e1acf3d200ec3ca1da566488db7dc07bd.tar.gz
hercules-42acbf2e1acf3d200ec3ca1da566488db7dc07bd.tar.bz2
hercules-42acbf2e1acf3d200ec3ca1da566488db7dc07bd.tar.xz
hercules-42acbf2e1acf3d200ec3ca1da566488db7dc07bd.zip
- 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
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");