Updated pc_cant_act2 (#6513)

Fixed #5087

Thanks to @idk-whoami
This commit is contained in:
Atemo 2022-01-14 15:15:09 +01:00 committed by GitHub
parent 8b53e58d4e
commit 0bc85ae0f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ){