summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-04-15 22:09:12 -0400
committergumi <git@gumi.ca>2019-04-15 22:09:12 -0400
commitb7e61454ed287ed27027fa0eb88502f8dabc234a (patch)
tree2f9fdb66e77bbac86efc6037957e3351732cb925
parentbb550274cda032dc71f2b0042488b7dedbdd34e3 (diff)
downloadtmwa-b7e61454ed287ed27027fa0eb88502f8dabc234a.tar.gz
tmwa-b7e61454ed287ed27027fa0eb88502f8dabc234a.tar.bz2
tmwa-b7e61454ed287ed27027fa0eb88502f8dabc234a.tar.xz
tmwa-b7e61454ed287ed27027fa0eb88502f8dabc234a.zip
do not apply automod for hidden GMs
-rw-r--r--src/map/clif.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index 1ab6c48..b9e8bec 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -3392,9 +3392,11 @@ void clif_sitting(Session *, dumb_ptr<map_session_data> sd)
dumb_ptr<block_list> d_bl = sd->bl_m->blocks.ref(sd->bl_x / BLOCK_SIZE, sd->bl_y / BLOCK_SIZE).normal;
for (; d_bl; d_bl = d_bl->bl_next)
{
- if (d_bl->bl_type == BL::PC && d_bl->bl_x == sd->bl_x && d_bl->bl_y == sd->bl_y && d_bl->bl_id != sd->bl_id)
+ if (d_bl->bl_type == BL::PC && d_bl->bl_x == sd->bl_x && d_bl->bl_y == sd->bl_y)
{
dumb_ptr<map_session_data> d_sd = d_bl->is_player();
+ if (d_sd == sd || bool(d_sd->status.option & Opt0::INVISIBILITY))
+ continue;
switch (d_sd->automod)
{