Browse Source

Updated pc_cant_act2 (#6513)

Fixed #5087

Thanks to @idk-whoami
Atemo 3 năm trước cách đây
mục cha
commit
0bc85ae0f9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/map/pc.hpp

+ 1 - 1
src/map/pc.hpp

@@ -1055,7 +1055,7 @@ extern JobDatabase job_db;
 static bool pc_cant_act2( struct map_session_data* sd ){
 	return sd->state.vending || sd->state.buyingstore || (sd->sc.opt1 && sd->sc.opt1 != OPT1_BURNING)
 		|| sd->state.trading || sd->state.storage_flag || sd->state.prevend || sd->state.refineui_open
-		|| sd->state.stylist_open || sd->state.inventory_expansion_confirmation;
+		|| sd->state.stylist_open || sd->state.inventory_expansion_confirmation || sd->npc_shopid;
 }
 // equals pc_cant_act2 and additionally checks for chat rooms and npcs
 static bool pc_cant_act( struct map_session_data* sd ){