summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-28 02:08:49 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-28 02:08:49 +0200
commit736b288594003e1e6e4aabf8bc72f82d03143bb2 (patch)
tree60b3936ab37d0de8557fa03b99dae77ca7cce192
parente7f6a8ad0baefe9827b42a01d99ce2e507bf9284 (diff)
downloadhercules-736b288594003e1e6e4aabf8bc72f82d03143bb2.tar.gz
hercules-736b288594003e1e6e4aabf8bc72f82d03143bb2.tar.bz2
hercules-736b288594003e1e6e4aabf8bc72f82d03143bb2.tar.xz
hercules-736b288594003e1e6e4aabf8bc72f82d03143bb2.zip
Disable using Megaphone while interacting with NPCs regardless of item_enabled_npc battle flag
-rw-r--r--src/map/pc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index ae746dab4..6f3227ec9 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5190,7 +5190,8 @@ static int pc_useitem(struct map_session_data *sd, int n)
// Store information for later use before it is lost (via pc->delitem) [Paradox924X]
nameid = sd->inventory_data[n]->nameid;
- if (nameid == ITEMID_MEGAPHONE && ((sd->state.workinprogress & 2) != 0 || sd->state.using_megaphone != 0)) {
+ if (nameid == ITEMID_MEGAPHONE && ((sd->state.workinprogress & 2) != 0 || sd->state.using_megaphone != 0
+ || sd->npc_id != 0)) {
#if PACKETVER >= 20110308
clif->msgtable(sd, MSG_BUSY);
#else