summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-18 21:47:49 -0300
committershennetsind <ind@henn.et>2013-02-18 21:47:49 -0300
commit55134e898bd660ade5b5005a5f44fd10f5452647 (patch)
tree04c46d30078fd3ef347423c2224fbcf0f870bae8 /src
parent327a46d159973eb1fe224e82388d0dae32c35b28 (diff)
downloadhercules-55134e898bd660ade5b5005a5f44fd10f5452647.tar.gz
hercules-55134e898bd660ade5b5005a5f44fd10f5452647.tar.bz2
hercules-55134e898bd660ade5b5005a5f44fd10f5452647.tar.xz
hercules-55134e898bd660ade5b5005a5f44fd10f5452647.zip
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 <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c6
1 files changed, 3 insertions, 3 deletions
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))