diff options
author | Dennis Friis <peavey@placid.dk> | 2008-08-19 16:02:02 +0000 |
---|---|---|
committer | Dennis Friis <peavey@placid.dk> | 2008-08-19 16:02:02 +0000 |
commit | 28ad0a20d0de1cd3b4f756fa5fd9207639bc8cfd (patch) | |
tree | 780b53fd0a73533b92f09211b940621d9662c850 | |
parent | 0a74f9ba775857aeb281266a6e8cc10052023774 (diff) | |
download | tmwa-28ad0a20d0de1cd3b4f756fa5fd9207639bc8cfd.tar.gz tmwa-28ad0a20d0de1cd3b4f756fa5fd9207639bc8cfd.tar.bz2 tmwa-28ad0a20d0de1cd3b4f756fa5fd9207639bc8cfd.tar.xz tmwa-28ad0a20d0de1cd3b4f756fa5fd9207639bc8cfd.zip |
Apply patch from fate to fix drop stealing.
-rw-r--r-- | src/map/pc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index e5d3bfa..f9e564e 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2944,7 +2944,7 @@ int pc_takeitem(struct map_session_data *sd,struct flooritem_data *fitem) if(fitem->first_get_id > 0) { first_sd = map_id2sd(fitem->first_get_id); if(tick < fitem->first_get_tick) { - if(fitem->first_get_id != sd->bl.id && !(first_sd && first_sd->status.party_id == sd->status.party_id)) { + if(fitem->first_get_id != sd->bl.id) { clif_additem(sd,0,0,6); return 0; } @@ -2952,8 +2952,7 @@ int pc_takeitem(struct map_session_data *sd,struct flooritem_data *fitem) else if(fitem->second_get_id > 0) { second_sd = map_id2sd(fitem->second_get_id); if(tick < fitem->second_get_tick) { - if(fitem->first_get_id != sd->bl.id && fitem->second_get_id != sd->bl.id && - !(first_sd && first_sd->status.party_id == sd->status.party_id) && !(second_sd && second_sd->status.party_id == sd->status.party_id)) { + if(fitem->first_get_id != sd->bl.id && fitem->second_get_id != sd->bl.id) { clif_additem(sd,0,0,6); return 0; } @@ -2961,9 +2960,7 @@ int pc_takeitem(struct map_session_data *sd,struct flooritem_data *fitem) else if(fitem->third_get_id > 0) { third_sd = map_id2sd(fitem->third_get_id); if(tick < fitem->third_get_tick) { - if(fitem->first_get_id != sd->bl.id && fitem->second_get_id != sd->bl.id && fitem->third_get_id != sd->bl.id && - !(first_sd && first_sd->status.party_id == sd->status.party_id) && !(second_sd && second_sd->status.party_id == sd->status.party_id) && - !(third_sd && third_sd->status.party_id == sd->status.party_id)) { + if(fitem->first_get_id != sd->bl.id) { clif_additem(sd,0,0,6); return 0; } |