summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-03-30 14:32:33 -0400
committergumi <mekolat@users.noreply.github.com>2017-03-30 14:32:33 -0400
commitd0ea54965867c7f93da490b5f1a95f7ac4000bbb (patch)
treeefdc4055ac78ef653b5c581dcfe9794df816a897
parent1c5159c1802df8d3ee8d625f0561069f7e898671 (diff)
downloadtmwa-17.3.30.tar.gz
tmwa-17.3.30.tar.bz2
tmwa-17.3.30.tar.xz
tmwa-17.3.30.zip
make `@chareffect` respect the gm power hierarchyv17.3.30
-rw-r--r--src/map/atcommand.cpp2
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);