From 55134e898bd660ade5b5005a5f44fd10f5452647 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 18 Feb 2013 21:47:49 -0300 Subject: Fixed @mi excluding spawn-monsters with no exp Modified @mi exclusion criteria so that it requires a monster to not have a fixed spawn point as well as no base/job exp. It was excluding things such as red/blue/whatever plant from search results. Signed-off-by: shennetsind --- src/map/mob.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index e7d36d6b9..96c27cf4e 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -113,9 +113,9 @@ int mobdb_searchname(const char *str) static int mobdb_searchname_array_sub(struct mob_db* mob, const char *str) { if (mob == mob_dummy) - return 1; //Invalid mob. - if(!mob->base_exp && !mob->job_exp) - return 1; //Discount slave-mobs (no exp) as requested by Playtester. [Skotlex] + return 1; + if(!mob->base_exp && !mob->job_exp && mob->spawn[0].qty < 1) + return 1; // Monsters with no base/job exp and no spawn point are, by this criteria, considered "slave mobs" and excluded from search results if(stristr(mob->jname,str)) return 0; if(stristr(mob->name,str)) -- cgit v1.2.3-60-g2f50