diff options
author | gumi <mekolat@users.noreply.github.com> | 2017-03-30 14:32:33 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2017-03-30 14:32:33 -0400 |
commit | d0ea54965867c7f93da490b5f1a95f7ac4000bbb (patch) | |
tree | efdc4055ac78ef653b5c581dcfe9794df816a897 | |
parent | 1c5159c1802df8d3ee8d625f0561069f7e898671 (diff) | |
download | tmwa-d0ea54965867c7f93da490b5f1a95f7ac4000bbb.tar.gz tmwa-d0ea54965867c7f93da490b5f1a95f7ac4000bbb.tar.bz2 tmwa-d0ea54965867c7f93da490b5f1a95f7ac4000bbb.tar.xz tmwa-d0ea54965867c7f93da490b5f1a95f7ac4000bbb.zip |
make `@chareffect` respect the gm power hierarchyv17.3.30
-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); |