Преглед изворни кода

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

* Thanks to @aleos89
Daegaladh пре 5 година
родитељ
комит
058ad2c67e
1 измењених фајлова са 2 додато и 1 уклоњено
  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) */