diff options
author | shennetsind <shennetsind@users.noreply.github.com> | 2013-11-07 11:10:40 -0800 |
---|---|---|
committer | shennetsind <shennetsind@users.noreply.github.com> | 2013-11-07 11:10:40 -0800 |
commit | 01e4647db2d5c635c7b4447f37663797a3f47b99 (patch) | |
tree | 94303465410557176454305aeeab76a13ca8514d /src/map/mail.c | |
parent | 9f32aa958f86a228290c43544c8b9bbf3f1c2cc0 (diff) | |
parent | 951b18c97a09426e2f14801263c2fd07efbd46bb (diff) | |
download | hercules-01e4647db2d5c635c7b4447f37663797a3f47b99.tar.gz hercules-01e4647db2d5c635c7b4447f37663797a3f47b99.tar.bz2 hercules-01e4647db2d5c635c7b4447f37663797a3f47b99.tar.xz hercules-01e4647db2d5c635c7b4447f37663797a3f47b99.zip |
Merge pull request #220 from shennetsind/master
mhalicot's Item Bind Pull Request
Diffstat (limited to 'src/map/mail.c')
-rw-r--r-- | src/map/mail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/mail.c b/src/map/mail.c index 2378cbe2a..007f7592d 100644 --- a/src/map/mail.c +++ b/src/map/mail.c @@ -82,7 +82,8 @@ unsigned char mail_setitem(struct map_session_data *sd, int idx, int amount) { if( amount < 0 || amount > sd->status.inventory[idx].amount ) return 1; if( !pc->can_give_items(sd) || sd->status.inventory[idx].expire_time || - !itemdb_canmail(&sd->status.inventory[idx],pc->get_group_level(sd)) ) + !itemdb_canmail(&sd->status.inventory[idx],pc->get_group_level(sd)) || + (sd->status.inventory[idx].bound && !pc->can_give_bound_items(sd)) ) return 1; sd->mail.index = idx; |