summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorgepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-18 12:08:41 +0000
committergepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-18 12:08:41 +0000
commit268921a15901fc5deefdd5143ada2f18ba5e0dd1 (patch)
treeb8a88317968018be38d2d721c50f64e6ab0f39cb /src/map/mob.c
parentbea3f9774fe6134d927002d8f7a9b68f2c2d37fd (diff)
downloadhercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.tar.gz
hercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.tar.bz2
hercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.tar.xz
hercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.zip
Extended @alootid command to support multiple items (default: 10).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15489 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 7b5e0265c..6f0bd859d 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1738,7 +1738,7 @@ static void mob_item_drop(struct mob_data *md, struct item_drop_list *dlist, str
if( sd == NULL ) sd = map_charid2sd(dlist->third_charid);
if( sd
- && (drop_rate <= sd->state.autoloot || ditem->item_data.nameid == sd->state.autolootid)
+ && (drop_rate <= sd->state.autoloot || pc_isautolooting(sd, ditem->item_data.nameid))
&& (battle_config.idle_no_autoloot == 0 || DIFF_TICK(last_tick, sd->idletime) < battle_config.idle_no_autoloot)
&& (battle_config.homunculus_autoloot?1:!flag)
#ifdef AUTOLOOT_DISTANCE