diff options
author | Haru <haru@dotalux.com> | 2017-10-21 19:32:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-21 19:32:06 +0200 |
commit | 58fdbea3d60eea1e6fcbc0dfcaddb85c7c3f1486 (patch) | |
tree | 8fafcb8a121e18217c6e50da66c72ca06795b09f /src/map/mob.c | |
parent | 10acab2a7742f1257777c9b6e0d900d2729b9839 (diff) | |
parent | 2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c (diff) | |
download | hercules-58fdbea3d60eea1e6fcbc0dfcaddb85c7c3f1486.tar.gz hercules-58fdbea3d60eea1e6fcbc0dfcaddb85c7c3f1486.tar.bz2 hercules-58fdbea3d60eea1e6fcbc0dfcaddb85c7c3f1486.tar.xz hercules-58fdbea3d60eea1e6fcbc0dfcaddb85c7c3f1486.zip |
Merge pull request #1833 from Emistry/mapflag_noautoloot
Add NoAutoloot mapflag
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 1fb46283d..822b84bf4 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1904,6 +1904,7 @@ void mob_item_drop(struct mob_data *md, struct item_drop_list *dlist, struct ite if( sd && (drop_rate <= sd->state.autoloot || pc->isautolooting(sd, ditem->item_data.nameid)) + && (!map->list[sd->bl.m].flag.noautoloot) && (battle_config.idle_no_autoloot == 0 || DIFF_TICK(sockt->last_tick, sd->idletime) < battle_config.idle_no_autoloot) && (battle_config.homunculus_autoloot?1:!flag) #ifdef AUTOLOOT_DISTANCE |