Fixed bugreport:4292 item_noequip now scans armor enchant gems.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15844 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
shennetsind 2012-04-11 04:35:16 +00:00
parent 0674d99a60
commit f723992af9

View File

@ -700,9 +700,14 @@ static int pc_isAllowedCardOn(struct map_session_data *sd,int s,int eqindex,int
int i;
struct item *item = &sd->status.inventory[eqindex];
struct item_data *data;
//Crafted/made/hatched items.
if (itemdb_isspecial(item->card[0]))
return 1;
/* scan for enchant armor gems */
if( item->card[MAX_SLOTS - 1] && s < MAX_SLOTS - 1 )
s = MAX_SLOTS - 1;
ARR_FIND( 0, s, i, item->card[i] && (data = itemdb_exists(item->card[i])) != NULL && data->flag.no_equip&flag );
return( i < s ) ? 0 : 1;