summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-25 08:09:10 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-25 08:09:10 +0200
commit0f11b668aebc5197281a4747b202cc9fa7549d72 (patch)
treef1f106ab30b34a1197b0c4a081916c475e7b10c2 /src/map/clif.c
parent7da438ed9885aa05f4d2748e655ad889b4d39c85 (diff)
downloadhercules-0f11b668aebc5197281a4747b202cc9fa7549d72.tar.gz
hercules-0f11b668aebc5197281a4747b202cc9fa7549d72.tar.bz2
hercules-0f11b668aebc5197281a4747b202cc9fa7549d72.tar.xz
hercules-0f11b668aebc5197281a4747b202cc9fa7549d72.zip
Enable buying store features while Megaphone input box is present
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 715e829f0..2b2865255 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -19190,7 +19190,7 @@ static void clif_parse_ReqOpenBuyingStore(int fd, struct map_session_data *sd) _
/// 1 = open
static void clif_parse_ReqOpenBuyingStore(int fd, struct map_session_data *sd)
{
- if (pc_istrading(sd) || pc_isdead(sd))
+ if (pc_istrading_except_npc(sd) || (sd->npc_id != 0 && sd->state.using_megaphone == 0) || pc_isdead(sd))
return;
const unsigned int blocksize = sizeof(struct PACKET_CZ_REQ_OPEN_BUYING_STORE_sub);