summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.c')
-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 2288227b4..a7fc4a783 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2310,12 +2310,15 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
{
if (md->db->dropitem[i].nameid <= 0)
continue;
+ if (!itemdb_exists(md->db->dropitem[i].nameid))
+ continue;
drop_rate = md->db->dropitem[i].p;
if (drop_rate <= 0) {
if (battle_config.drop_rate0item)
continue;
drop_rate = 1;
}
+
// change drops depending on monsters size [Valaris]
if(md->special_state.size==1 && drop_rate >= 2)
drop_rate/=2;
@@ -2456,6 +2459,8 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
if(md->db->mvpitem[i].nameid <= 0)
continue;
+ if(!itemdb_exists(md->db->mvpitem[i].nameid))
+ continue;
temp = md->db->mvpitem[i].p;
if(temp <= 0 && !battle_config.drop_rate0item)