Browse Source

Fixed duplicated skill status check when switching weapons (#4806)

* Thanks to @aleos89
Daegaladh 5 years ago
parent
commit
058ad2c67e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/map/pc.cpp

+ 2 - 1
src/map/pc.cpp

@@ -10551,7 +10551,8 @@ static void pc_unequipitem_sub(struct map_session_data *sd, int n, int flag) {
 		sd->state.autobonus &= ~sd->inventory.u.items_inventory[n].equip; //Check for activated autobonus [Inkfish]
 
 	sd->inventory.u.items_inventory[n].equip = 0;
-	pc_checkallowskill(sd);
+	if (!(flag & 4))
+		pc_checkallowskill(sd);
 	iflag = sd->npc_item_flag;
 
 	/* check for combos (MUST be before status_calc_pc) */