Forráskód Böngészése

Fixed the wrong working item combos. bugreport:7174

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17118 54d463be-8e91-2dee-dedb-b68131a5f0ec
lemongrass3110 12 éve
szülő
commit
195d924e91
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      src/map/pc.c

+ 6 - 0
src/map/pc.c

@@ -249,6 +249,7 @@ int pc_delspiritball(struct map_session_data *sd,int count,int type)
 	}
 	return 0;
 }
+
 static int pc_check_banding( struct block_list *bl, va_list ap ) {
 	int *c, *b_sd;
 	struct block_list *src;
@@ -277,6 +278,7 @@ static int pc_check_banding( struct block_list *bl, va_list ap ) {
 
 	return 0;
 }
+
 int pc_banding(struct map_session_data *sd, uint16 skill_lv) {
 	int c;
 	int b_sd[MAX_PARTY]; // In case of a full Royal Guard party.
@@ -8203,6 +8205,10 @@ int pc_removecombo(struct map_session_data *sd, struct item_data *data ) {
 			cursor++;
 		}
 
+		/* check if combo requirements still fit */
+		if( pc_checkcombo( sd, data ) )
+			continue;
+
 		/* it's empty, we can clear all the memory */
 		if( (sd->combos.count = cursor) == 0 ) {
 			aFree(sd->combos.bonus);