Преглед на файлове

Card compounding window no longer appears if no slotted items are available. (Hercules 763102b)

Signed-off-by: Euphy <euphy.raliel@rathena.org>
Euphy преди 11 години
родител
ревизия
89896d751a
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      src/map/clif.c

+ 6 - 0
src/map/clif.c

@@ -5936,9 +5936,15 @@ void clif_use_card(struct map_session_data *sd,int idx)
 		if( j == sd->inventory_data[i]->slot )	// No room
 			continue;
 
+		if( sd->status.inventory[i].equip > 0 )	// Do not check items that are already equipped
+			continue;
+
 		WFIFOW(fd,4+c*2)=i+2;
 		c++;
 	}
+
+	if( !c ) return;	// no item is available for card insertion
+
 	WFIFOW(fd,2)=4+c*2;
 	WFIFOSET(fd,WFIFOW(fd,2));
 }