From c6a57edb3cb1b89ba16fee291fb9344260826570 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 11 Feb 2012 17:11:56 +0000 Subject: Added 2 new item_trade.txt flags as per kenpachi request: - Item can't be attached to mail - Item can't be auctioned git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15564 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/mail.c') diff --git a/src/map/mail.c b/src/map/mail.c index 249f93abc..ad0b3c917 100644 --- a/src/map/mail.c +++ b/src/map/mail.c @@ -82,7 +82,7 @@ unsigned char mail_setitem(struct map_session_data *sd, int idx, int amount) return 1; if( amount < 0 || amount > sd->status.inventory[idx].amount ) return 1; - if( !pc_candrop(sd, &sd->status.inventory[idx]) ) + if( !pc_candrop(sd, &sd->status.inventory[idx]) || !itemdb_canmail(&sd->status.inventory[idx],pc_isGM(sd)) ) return 1; sd->mail.index = idx; -- cgit v1.2.3-60-g2f50