From b7e61454ed287ed27027fa0eb88502f8dabc234a Mon Sep 17 00:00:00 2001 From: gumi Date: Mon, 15 Apr 2019 22:09:12 -0400 Subject: do not apply automod for hidden GMs --- src/map/clif.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map') 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 sd) dumb_ptr 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 d_sd = d_bl->is_player(); + if (d_sd == sd || bool(d_sd->status.option & Opt0::INVISIBILITY)) + continue; switch (d_sd->automod) { -- cgit v1.2.3-70-g09d2