diff options
-rw-r--r-- | src/map/atcommand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index 3bbda58..a138b72 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -4232,7 +4232,7 @@ ATCE atcommand_chareffect(Session *s, dumb_ptr<map_session_data>, return ATCE::USAGE; dumb_ptr<map_session_data> pl_sd = map_nick2sd(target); - if (pl_sd == nullptr) + if (pl_sd == nullptr || (pl_sd != nullptr && !(pc_isGM(sd).detects(pc_isGM(pl_sd))))) return ATCE::EXIST; clif_specialeffect(pl_sd, type, 0); |